# File lib/rails_xss/action_view.rb, line 73 def safe_helper(*names) names.each do |helper_method_name| aliased_target, punctuation = helper_method_name.to_s.sub(/([?!=])$/, ''), $1 module_eval "def \#{aliased_target}_with_xss_safety\#{punctuation}(*args, &block)\nraw(\#{aliased_target}_without_xss_safety\#{punctuation}(*args, &block))\nend\n" alias_method_chain helper_method_name, :xss_safety end end