mirror of
https://github.com/Mibew/handlebars.php.git
synced 2024-11-15 00:34:12 +03:00
Don't re-escape variables that are already safe
This commit is contained in:
parent
a00af06cac
commit
402f970b77
@ -629,7 +629,7 @@ class Template
|
||||
if (is_array($value)) {
|
||||
return 'Array';
|
||||
}
|
||||
if ($escaped) {
|
||||
if ($escaped && !($value instanceof SafeString) {
|
||||
$args = $this->handlebars->getEscapeArgs();
|
||||
array_unshift($args, (string)$value);
|
||||
$value = call_user_func_array(
|
||||
|
Loading…
Reference in New Issue
Block a user