You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
384 B
22 lines
384 B
14 years ago
|
<?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);
|
||
|
}
|
||
|
|
||
|
?>
|