Class: ActionView::Base

Inherits:
Object show all
Defined in:
lib/xss_shield/erb_hacks.rb,
lib/xss_shield/secure_helpers.rb

Instance Method Summary collapse

Instance Method Details

#button_to_with_xss_protection(text, *args) ⇒ Object



32
33
34
# File 'lib/xss_shield/secure_helpers.rb', line 32

def button_to_with_xss_protection(text, *args)
  button_to_without_xss_protection(text.to_s_xss_protected, *args).mark_as_xss_protected
end


27
28
29
# File 'lib/xss_shield/secure_helpers.rb', line 27

def link_to_with_xss_protection(text, *args)
  link_to_without_xss_protection(text.to_s_xss_protected, *args).mark_as_xss_protected
end