Allow HTML table tags/attributes in sanitizer

Irfan Charania 9 年之前
父節點
當前提交
6889ab4d88
共有 1 個文件被更改,包括 2 次插入0 次删除
  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))