mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-03 18:04:26 +02:00
fix escape
This commit is contained in:
@@ -84,7 +84,7 @@ class PrintExpressionCompiler extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($compiler->getTemplate()->getSmarty()->escape_html) {
|
if ($compiler->getTemplate()->getSmarty()->escape_html) {
|
||||||
$output = "htmlspecialchars((string) {$output}, ENT_QUOTES, '" . addslashes(\Smarty\Smarty::$_CHARSET) . "')";
|
$output = "htmlspecialchars((string) ({$output}), ENT_QUOTES, '" . addslashes(\Smarty\Smarty::$_CHARSET) . "')";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user