instance method
html_escape_interpolated_argument
Ruby on Rails 4.2.9
Since v4.1.16 Last seen in v6.1.7.10 PrivateSignature
html_escape_interpolated_argument(arg)
No documentation comment.
Parameters
-
argreq
Source
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 246
def html_escape_interpolated_argument(arg)
(!html_safe? || arg.html_safe?) ? arg :
arg.to_s.gsub(ERB::Util::HTML_ESCAPE_REGEXP, ERB::Util::HTML_ESCAPE)
end
Defined in activesupport/lib/active_support/core_ext/string/output_safety.rb line 246
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::SafeBuffer