Deutschland United States United Kingdom
ContentLion - Open Source CMS

variablefilter.htmlspecialchars.php

Blame | Last modification | View Log

<?php
/**
 * Smarty plugin
 *
 * @package Smarty
 * @subpackage PluginsFilter
 */


/**
 * Smarty htmlspecialchars variablefilter plugin
 *
 * @param string                   $source input string
 * @param Plugin_Smarty_InternalTemplate $smarty Smarty object
 * @return string filtered output
 */

function smarty_variablefilter_htmlspecialchars($source, $smarty)
{
    return htmlspecialchars($source, ENT_QUOTES, Plugin_Smarty_Smarty::$_CHARSET);
}