Skip to content

Commit

Permalink
Allow HTML table tags/attributes in sanitizer
Browse files Browse the repository at this point in the history
  • Loading branch information
irfancharania committed Mar 27, 2016
1 parent d13edc2 commit 6889ab4
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 6889ab4

Please sign in to comment.