Class: ActionView::Base
- Defined in:
- lib/xss_shield/erb_hacks.rb,
lib/xss_shield/secure_helpers.rb
Instance Method Summary collapse
- #button_to_with_xss_protection(text, *args) ⇒ Object
- #link_to_with_xss_protection(text, *args) ⇒ Object
Instance Method Details
#button_to_with_xss_protection(text, *args) ⇒ Object
32 33 34 |
# File 'lib/xss_shield/secure_helpers.rb', line 32 def (text, *args) (text.to_s_xss_protected, *args).mark_as_xss_protected end |
#link_to_with_xss_protection(text, *args) ⇒ Object
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 |