method
html_escape_once
v4.0.2 -
Show latest stable
- Class:
ERB::Util
html_escape_once(s)public
A utility method for escaping HTML without affecting existing escaped entities.
html_escape_once('1 < 2 & 3') # => "1 < 2 & 3" html_escape_once('<< Accept & Checkout') # => "<< Accept & Checkout"