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