source: trunk/include/smarty/libs/plugins/variablefilter.htmlspecialchars.php @ 23384

Last change on this file since 23384 was 23384, checked in by rvelices, 11 years ago

smarty 3 - first pass for tests

File size: 432 bytes
Line 
1<?php
2/**
3 * Smarty plugin
4 *
5 * @package Smarty
6 * @subpackage PluginsFilter
7 */
8
9/**
10 * Smarty htmlspecialchars variablefilter plugin
11 *
12 * @param string                   $source input string
13 * @param Smarty_Internal_Template $smarty Smarty object
14 * @return string filtered output
15 */
16function smarty_variablefilter_htmlspecialchars($source, $smarty)
17{
18    return htmlspecialchars($source, ENT_QUOTES, Smarty::$_CHARSET);
19}
20
21?>
Note: See TracBrowser for help on using the repository browser.