Module: ActionView::Helpers::TextHelper

Defined in:
lib/rails_xss/action_view.rb

Instance Method Summary collapse

Instance Method Details

#concat(string, unused_binding = nil) ⇒ Object



19
20
21
22
23
24
25
# File 'lib/rails_xss/action_view.rb', line 19

def concat(string, unused_binding = nil)
  if unused_binding
    ActiveSupport::Deprecation.warn("The binding argument of #concat is no longer needed.  Please remove it from your views and helpers.", caller)
  end

  output_buffer.concat(string)
end

#simple_format_with_escaping(text, html_options = {}) ⇒ Object



27
28
29
# File 'lib/rails_xss/action_view.rb', line 27

def simple_format_with_escaping(text, html_options = {})
  simple_format_without_escaping(ERB::Util.h(text), html_options)
end