Skip to content

Commit

Permalink
[#852 state:resolved] add table to sanitize_html's PERMITTED_TAGS.
Browse files Browse the repository at this point in the history
credit: Venka Ashtakala
  • Loading branch information
bryanlarsen committed Nov 12, 2010
1 parent 2112d86 commit d129fb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hobofields/lib/hobo_fields/sanitize_html.rb
Expand Up @@ -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

Expand All @@ -17,4 +17,4 @@ def self.sanitize(s)

end

end
end

0 comments on commit d129fb4

Please sign in to comment.