removed mods directory from the ATutor codebase
[atutor.git] / mods / phpdoc2 / PhpDocumentor / phpDocumentor / Smarty-2.6.0 / libs / plugins / shared.escape_special_chars.php
diff --git a/mods/phpdoc2/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/plugins/shared.escape_special_chars.php b/mods/phpdoc2/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/plugins/shared.escape_special_chars.php
deleted file mode 100644 (file)
index 72b8a48..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php\r
-/**\r
- * Smarty shared plugin\r
- * @package Smarty\r
- * @subpackage plugins\r
- */\r
-\r
-\r
-/**\r
- * escape_special_chars common function\r
- *\r
- * Function: smarty_function_escape_special_chars<br>\r
- * Purpose:  used by other smarty functions to escape\r
- *           special chars except for already escaped ones\r
- * @param string\r
- * @return string\r
- */\r
-function smarty_function_escape_special_chars($string)\r
-{\r
-       if(!is_array($string))  {\r
-               $string = preg_replace('!&(#?\w+);!', '%%%SMARTY_START%%%\\1%%%SMARTY_END%%%', $string);\r
-               $string = htmlspecialchars($string);\r
-               $string = str_replace(array('%%%SMARTY_START%%%','%%%SMARTY_END%%%'), array('&',';'), $string);\r
-       }\r
-       return $string; \r
-}\r
-\r
-/* vim: set expandtab: */\r
-\r
-?>\r