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)
141 142 143 144 145 146 147 |
# File 'lib/haml/helpers/xss_mods.rb', line 141
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
153 154 155 156 157 158 159 |
# File 'lib/haml/helpers/xss_mods.rb', line 153
def safe_concat_with_haml_xss(string)
if is_haml?
haml_buffer.buffer.concat(string)
else
safe_concat_without_haml_xss(string)
end
end
|