Files
smarty/libs/plugins/variablefilter.htmlspecialchars.php

20 lines
451 B
PHP
Raw Normal View History

<?php
/**
2010-08-17 15:39:51 +00:00
* Smarty plugin
2011-09-16 14:19:56 +00:00
*
* @package Smarty
2010-08-17 15:39:51 +00:00
* @subpackage PluginsFilter
*/
/**
2010-08-17 15:39:51 +00:00
* Smarty htmlspecialchars variablefilter plugin
2011-09-16 14:19:56 +00:00
*
* @param string $source input string
* @param \Smarty_Internal_Template $template
*
2010-08-17 15:39:51 +00:00
* @return string filtered output
*/
function smarty_variablefilter_htmlspecialchars($source, Smarty_Internal_Template $template)
{
return htmlspecialchars($source, ENT_QUOTES, Smarty::$_CHARSET);
2011-09-16 14:19:56 +00:00
}