1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Merge pull request #786 from etagwerker/improve_method_doc_util_html_safe

Added a note about ActiveSupport to the #html_safe method.
This commit is contained in:
Norman Clarke 2014-12-18 11:47:53 -03:00
commit 422d64ec3e

View file

@ -39,6 +39,9 @@ module Haml
# With older versions of the Rails XSS-safety mechanism,
# this destructively modifies the HTML-safety of `text`.
#
# It only works if you are using ActiveSupport or the parameter `text`
# implements the #html_safe method.
#
# @param text [String, nil]
# @return [String, nil] `text`, marked as HTML-safe
def html_safe(text)