method
escape_once
v3.2.1 -
Show latest stable
- Class:
ActionView::Helpers::TagHelper
escape_once(html)public
Returns an escaped version of html without affecting existing escaped entities.
Examples
escape_once("1 < 2 & 3") # => "1 < 2 & 3" escape_once("<< Accept & Checkout") # => "<< Accept & Checkout"