Module: ActionView::Helpers::TextHelper

Defined in:
lib/haml/helpers/xss_mods.rb,
lib/haml/helpers/action_view_mods.rb

Instance Method Summary collapse

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)



109
110
111
112
113
114
115
# File 'lib/haml/helpers/xss_mods.rb', line 109

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



121
122
123
124
125
126
127
# File 'lib/haml/helpers/xss_mods.rb', line 121

def safe_concat_with_haml_xss(string)
  if is_haml?
    haml_buffer.buffer.concat(string)
  else
    safe_concat_without_haml_xss(string)
  end
end