init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
19
lib/plugins/variablefilter.htmlspecialchars.php
Normal file
19
lib/plugins/variablefilter.htmlspecialchars.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
/**
|
||||
* Smarty plugin
|
||||
*
|
||||
* @package Smarty
|
||||
* @subpackage PluginsFilter
|
||||
*/
|
||||
/**
|
||||
* Smarty htmlspecialchars variablefilter plugin
|
||||
*
|
||||
* @param string $source input string
|
||||
* @param \Smarty_Internal_Template $template
|
||||
*
|
||||
* @return string filtered output
|
||||
*/
|
||||
function smarty_variablefilter_htmlspecialchars($source, Smarty_Internal_Template $template)
|
||||
{
|
||||
return htmlspecialchars((string) $source, ENT_QUOTES, Smarty::$_CHARSET);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue