提交 c11bd7e7 编写于 作者: P Pratik Naik

Merge branch 'master' of git@github.com:rails/rails

...@@ -48,6 +48,11 @@ def self.included(base) ...@@ -48,6 +48,11 @@ def self.included(base)
# config.action_view.sanitized_allowed_attributes = 'id', 'class', 'style' # config.action_view.sanitized_allowed_attributes = 'id', 'class', 'style'
# end # end
# #
# Please note that sanitizing user-provided text does not guarantee that the
# resulting markup is valid (conforming to a document type) or even well-formed.
# The output may still contain e.g. unescaped '<', '>', '&' characters and
# confuse browsers.
#
def sanitize(html, options = {}) def sanitize(html, options = {})
self.class.white_list_sanitizer.sanitize(html, options) self.class.white_list_sanitizer.sanitize(html, options)
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册