From 74ea943c6812e3c47f04075515be294f933c31be Mon Sep 17 00:00:00 2001 From: Ernesto Tagwerker Date: Tue, 17 Jun 2014 15:35:00 -0300 Subject: [PATCH] Added a note about ActiveSupport to the #html_safe method. --- lib/haml/util.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/haml/util.rb b/lib/haml/util.rb index eb8ea449..3ede9fd4 100644 --- a/lib/haml/util.rb +++ b/lib/haml/util.rb @@ -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)