Auf Smarty umgestellt
This commit is contained in:
parent
d44a644cc1
commit
54a7fb72e5
123 changed files with 25664 additions and 30 deletions
19
libs/plugins/variablefilter.htmlspecialchars.php
Normal file
19
libs/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 $smarty Smarty object
|
||||
* @return string filtered output
|
||||
*/
|
||||
function smarty_variablefilter_htmlspecialchars($source, $smarty)
|
||||
{
|
||||
return htmlspecialchars($source, ENT_QUOTES, Smarty::$_CHARSET);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue