/framework/vendor/smarty3/lib/libs/plugins/variablefilter.htmlspecialchars.php
PHP | 21 lines | 6 code | 2 blank | 13 comment | 0 complexity | 320c819d38ce776d54007ba5663e83c2 MD5 | raw file
Possible License(s): BSD-3-Clause, LGPL-2.1
- <?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);
- }
- ?>