Browse Source

Allow HTML table tags/attributes in sanitizer

Irfan Charania 9 years ago
parent
commit
6889ab4d88
1 changed files with 2 additions and 0 deletions
  1. 2 0
      config/initializers/sanitizer.rb

+ 2 - 0
config/initializers/sanitizer.rb

@@ -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))