/** * Returns the escaped +html+ without affecting existing escaped entities. * * <%= escape_once "1 > 2 & 3" %> * # => "1 > 2 & 3" */ function escape_once($html) { static $charset; if (empty($charset)) { $charset = Ak::locale('charset'); } return TagHelper::_fix_double_escape(htmlentities($html, ENT_COMPAT, $charset)); }