![]() |
Documentación GVHIDRA 3.1.5
|
Ir al código fuente de este archivo.
Namespaces | |
namespace | Smarty |
Funciones | |
smarty_function_escape_special_chars ($string) |
smarty_function_escape_special_chars | ( | $ | string | ) |
escape_special_chars common function
Function: smarty_function_escape_special_chars
Purpose: used by other smarty functions to escape special chars except for already escaped ones
string |
Definición en la línea 19 del archivo shared.escape_special_chars.php.
{ if(!is_array($string)) { $string = preg_replace('!&(#?\w+);!', '%%%SMARTY_START%%%\\1%%%SMARTY_END%%%', $string); $string = htmlspecialchars($string); $string = str_replace(array('%%%SMARTY_START%%%','%%%SMARTY_END%%%'), array('&',';'), $string); } return $string; }