3 * template_lite tpl_escape_chars function
7 function tpl_escape_chars($string)
11 $string = preg_replace('!&(#?\w+);!', '%%%TEMPLATE_START%%%\\1%%%TEMPLATE_END%%%', $string);
12 $string = htmlspecialchars($string);
13 $string = str_replace(array('%%%TEMPLATE_START%%%','%%%TEMPLATE_END%%%'), array('&',';'), $string);