mirror of
https://github.com/smarty-php/smarty.git
synced 2025-12-04 16:29:20 +01:00
Upload version 3.1.20
This commit is contained in:
19
libs/plugins/variablefilter.htmlspecialchars.php
Normal file
19
libs/plugins/variablefilter.htmlspecialchars.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?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);
|
||||
}
|
||||
Reference in New Issue
Block a user