X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Fsmarty%2FSmarty-2.6.10%2Flibs%2Fplugins%2Fshared.escape_special_chars.php;fp=wwwroot%2Fsmarty%2FSmarty-2.6.10%2Flibs%2Fplugins%2Fshared.escape_special_chars.php;h=0000000000000000000000000000000000000000;hb=e034221efbc7970ec58be22d7517fd3c503dc903;hp=515763abedc096e496cfbf3dd8424c197d0e387c;hpb=c6f21b69e8210bdd0e80cf87f1c2f06dfc848a75;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/smarty/Smarty-2.6.10/libs/plugins/shared.escape_special_chars.php b/wwwroot/smarty/Smarty-2.6.10/libs/plugins/shared.escape_special_chars.php deleted file mode 100644 index 515763a..0000000 --- a/wwwroot/smarty/Smarty-2.6.10/libs/plugins/shared.escape_special_chars.php +++ /dev/null @@ -1,30 +0,0 @@ - - * Purpose: used by other smarty functions to escape - * special chars except for already escaped ones - * @param string - * @return string - */ -function smarty_function_escape_special_chars($string) -{ - 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; -} - -/* vim: set expandtab: */ - -?>