ActionView::Helpers::TagHelper
def escape_once(html)

Description

Returns the string, escaping only the parts that are not escaped yet.

Arguments

Changing a value updates the ERB and HTML.

Escapes the string, leaving already escaped parts such as &amp; and &lt; untouched (nothing is escaped twice). The returned string is marked as html_safe, so <%= %> does not escape it again.

ERB

Changes from the previous output: Added Removed Changed


          

HTML