Merge pull request #1380 from irfancharania/SanitizeTags

Allow HTML table tags/attributes in sanitizer

Andrew Cantino vor 9 Jahren
Ursprung
Commit
23031f6430
1 geänderte Dateien mit 2 neuen Zeilen und 0 gelöschten Zeilen
  1. 2 0
      config/initializers/sanitizer.rb

+ 2 - 0
config/initializers/sanitizer.rb

@@ -0,0 +1,2 @@
1
+ActionView::Base.sanitized_allowed_tags += Set.new(%w(table thead tbody tr th td))
2
+ActionView::Base.sanitized_allowed_attributes += Set.new(%w(border cellspacing cellpadding valign))