instance method explicit_html_escape_interpolated_argument

Ruby on Rails 8.0.4

Since v7.0.10 Private

Available in: v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

explicit_html_escape_interpolated_argument(arg)

No documentation comment.

Parameters

arg req
Source
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 193
      def explicit_html_escape_interpolated_argument(arg)
        (!html_safe? || arg.html_safe?) ? arg : CGI.escapeHTML(arg.to_s)
      end

Defined in activesupport/lib/active_support/core_ext/string/output_safety.rb line 193 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::SafeBuffer

Type at least 2 characters to search.

↑↓ navigate · open · esc close