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:
commit
422d64ec3e
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue