You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
451 B
PHTML
20 lines
451 B
PHTML
14 years ago
|
<?php
|
||
|
/**
|
||
|
* Smarty plugin
|
||
13 years ago
|
*
|
||
10 years ago
|
* @package Smarty
|
||
14 years ago
|
* @subpackage PluginsFilter
|
||
|
*/
|
||
|
/**
|
||
|
* Smarty htmlspecialchars variablefilter plugin
|
||
13 years ago
|
*
|
||
6 years ago
|
* @param string $source input string
|
||
|
* @param \Smarty_Internal_Template $template
|
||
10 years ago
|
*
|
||
14 years ago
|
* @return string filtered output
|
||
|
*/
|
||
6 years ago
|
function smarty_variablefilter_htmlspecialchars($source, Smarty_Internal_Template $template)
|
||
14 years ago
|
{
|
||
11 years ago
|
return htmlspecialchars($source, ENT_QUOTES, Smarty::$_CHARSET);
|
||
13 years ago
|
}
|