Files
smarty/libs/plugins/variablefilter.htmlspecialchars.php
Uwe.Tews 066467ca82 - implementation of a 'variable' filter as replacement for default modifier
- update of unregister_....filter methods
2009-04-10 01:15:53 +00:00

22 lines
395 B
PHP

<?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);
}
?>