9 if (version_compare(PHP_VERSION,
'5.2.3',
'>=')) {
21 function smarty_function_escape_special_chars($string)
23 if (!is_array($string)) {
40 function smarty_function_escape_special_chars($string)
42 if (!is_array($string)) {
43 $string = preg_replace(
'!&(#?\w+);!',
'%%%SMARTY_START%%%\\1%%%SMARTY_END%%%', $string);
44 $string = htmlspecialchars($string);
45 $string = str_replace(array(
'%%%SMARTY_START%%%',
'%%%SMARTY_END%%%'), array(
'&',
';'), $string);
static $_CHARSET
The character set to adhere to (e.g.