diff --git a/src/Handlebars/Template.php b/src/Handlebars/Template.php index 20ef957..3b631aa 100644 --- a/src/Handlebars/Template.php +++ b/src/Handlebars/Template.php @@ -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(