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

Added a note about ActiveSupport to the #html_safe method.

This commit is contained in:
Ernesto Tagwerker 2014-06-17 15:35:00 -03:00
parent 9a4a53b48d
commit 74ea943c68

View file

@ -71,6 +71,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)