Skip to content

Commit

Permalink
Merge pull request #1380 from irfancharania/SanitizeTags
Browse files Browse the repository at this point in the history
Allow HTML table tags/attributes in sanitizer
  • Loading branch information
cantino committed Mar 27, 2016
2 parents d13edc2 + 6889ab4 commit 23031f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/initializers/sanitizer.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ActionView::Base.sanitized_allowed_tags += Set.new(%w(table thead tbody tr th td))
ActionView::Base.sanitized_allowed_attributes += Set.new(%w(border cellspacing cellpadding valign))

0 comments on commit 23031f6

Please sign in to comment.