/libs/smarty/plugins/variablefilter.htmlspecialchars.php
https://bitbucket.org/jgivoni/vessel-3.0 · PHP · 22 lines · 6 code · 3 blank · 13 comment · 0 complexity · 41de646253dc1c98805575bb386a8d2a MD5 · raw file
- <?php
- /**
- * Smarty plugin
- *
- * @package Smarty
- * @subpackage PluginsFilter
- */
- /**
- * Smarty htmlspecialchars variablefilter plugin
- *
- * @param string $source input string
- * @param object $ &$smarty Smarty object
- * @return string filtered output
- */
- function smarty_variablefilter_htmlspecialchars($source, $smarty)
- {
- return htmlspecialchars($source, ENT_QUOTES);
- }
- ?>