Subversion Repositories ALCASAR

Rev

Details | Last modification | View Log

Rev Author Line No. Line
2809 rexy 1
<?php
2
/**
3
 * Smarty plugin
4
 *
5
 * @package    Smarty
6
 * @subpackage PluginsFilter
7
 */
8
/**
9
 * Smarty htmlspecialchars variablefilter plugin
10
 *
11
 * @param string                    $source input string
12
 * @param \Smarty_Internal_Template $template
13
 *
14
 * @return string filtered output
15
 */
16
function smarty_variablefilter_htmlspecialchars($source, Smarty_Internal_Template $template)
17
{
18
    return htmlspecialchars($source, ENT_QUOTES, Smarty::$_CHARSET);
19
}