1
0
Fork 0
smarty/libs/plugins/variablefilter.htmlspecialchars.php

20 Zeilen
351 B
PHP

2019-11-04 16:19:28 +00:00
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsFilter
*/
/**
* Smarty htmlspecialchars variablefilter plugin
*
* @param string $source input string
*
* @return string filtered output
*/
function smarty_variablefilter_htmlspecialchars($source)
{
return htmlspecialchars($source, ENT_QUOTES, Smarty::$_CHARSET);
}