method
html_escape_interpolated_argument
v6.1.3.1 -
Show latest stable
- Class:
ActiveSupport::SafeBuffer
html_escape_interpolated_argument(arg)private
No documentation available.
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 294
def html_escape_interpolated_argument(arg)
(!html_safe? || arg.html_safe?) ? arg : CGI.escapeHTML(arg.to_s)
end