method

html_escape_once

Importance_1
v5.2.3 - Show latest stable - 0 notes - 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"
Show source
Register or log in to add new notes.