From d129fb405016f371e6684dfd70cce441ccc13bf3 Mon Sep 17 00:00:00 2001 From: Bryan Larsen Date: Fri, 12 Nov 2010 12:49:04 -0500 Subject: [PATCH] [#852 state:resolved] add table to sanitize_html's PERMITTED_TAGS. credit: Venka Ashtakala --- hobofields/lib/hobo_fields/sanitize_html.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hobofields/lib/hobo_fields/sanitize_html.rb b/hobofields/lib/hobo_fields/sanitize_html.rb index d4b606ef4..2161df918 100644 --- a/hobofields/lib/hobo_fields/sanitize_html.rb +++ b/hobofields/lib/hobo_fields/sanitize_html.rb @@ -4,10 +4,10 @@ module SanitizeHtml PERMITTED_TAGS = %w(a abbr acronym address b bdo big blockquote br caption center cite code colgroup dd del dfn dir div dl dt em fieldset font h1 h2 h3 h4 h5 h6 i img ins kbd label legend li map menu ol optgroup - option p pre q s samp select small span strike strong sub sup tbody td textarea tfoot + option p pre q s samp select small span strike strong sub sup table tbody td textarea tfoot th thead tr tt u ul var) - PERMITTED_ATTRIBUTES = %w(href title class style align name src label target) + PERMITTED_ATTRIBUTES = %w(href title class style align name src label target border) class Helper; include ActionView::Helpers::SanitizeHelper; extend ActionView::Helpers::SanitizeHelper::ClassMethods; end @@ -17,4 +17,4 @@ def self.sanitize(s) end -end \ No newline at end of file +end