- implementation of a 'variable' filter as replacement for default modifier

- update of unregister_....filter methods
This commit is contained in:
Uwe.Tews
2009-04-10 01:15:53 +00:00
parent a424da0671
commit 066467ca82
16 changed files with 221 additions and 50 deletions

View File

@@ -0,0 +1,21 @@
<?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);
}
?>