Module: ActionView::Helpers::TextHelper
- Defined in:
- lib/haml/helpers/xss_mods.rb,
lib/haml/helpers/action_view_mods.rb
Instance Method Summary collapse
-
#concat_with_haml(string, binding = nil)
(also: #concat)
-
#concat_with_haml_xss(string)
-
#safe_concat_with_haml_xss(string)
(also: #safe_concat)
Instance Method Details
#concat_with_haml(string, binding = nil) Also known as: concat
74 75 76 77 78 79 80 |
# File 'lib/haml/helpers/action_view_mods.rb', line 74
def concat_with_haml(string, binding = nil)
if is_haml?
haml_buffer.buffer.concat(string)
else
concat_without_haml(string, binding)
end
end
|
#concat_with_haml_xss(string)
136 137 138 139 140 141 142 |
# File 'lib/haml/helpers/xss_mods.rb', line 136
def concat_with_haml_xss(string)
if is_haml?
haml_buffer.buffer.concat(haml_xss_html_escape(string))
else
concat_without_haml_xss(string)
end
end
|
#safe_concat_with_haml_xss(string) Also known as: safe_concat
148 149 150 151 152 153 154 |
# File 'lib/haml/helpers/xss_mods.rb', line 148
def safe_concat_with_haml_xss(string)
if is_haml?
haml_buffer.buffer.concat(string)
else
safe_concat_without_haml_xss(string)
end
end
|