summaryrefslogtreecommitdiff
path: root/libs/plugins/variablefilter.htmlspecialchars.php
diff options
context:
space:
mode:
Diffstat (limited to 'libs/plugins/variablefilter.htmlspecialchars.php')
-rw-r--r--libs/plugins/variablefilter.htmlspecialchars.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/libs/plugins/variablefilter.htmlspecialchars.php b/libs/plugins/variablefilter.htmlspecialchars.php
index 4d3550c0..aeaeb600 100644
--- a/libs/plugins/variablefilter.htmlspecialchars.php
+++ b/libs/plugins/variablefilter.htmlspecialchars.php
@@ -1,22 +1,21 @@
<?php
/**
* Smarty plugin
- *
+ *
* @package Smarty
* @subpackage PluginsFilter
*/
/**
* Smarty htmlspecialchars variablefilter plugin
- *
- * @param string $source input string
- * @param object $ &$smarty Smarty object
+ *
+ * @param string $source input string
+ * @param Smarty_Internal_Template $smarty Smarty object
* @return string filtered output
*/
-
function smarty_variablefilter_htmlspecialchars($source, $smarty)
{
- return htmlspecialchars($source, ENT_QUOTES);
-}
+ return htmlspecialchars($source, ENT_QUOTES, SMARTY_RESOURCE_CHAR_SET);
+}
?> \ No newline at end of file