method

html_escape_once

rails latest stable - Class: ERB::Util
html_escape_once(s)
private

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"