diff options
Diffstat (limited to 'core/Twig.php')
-rw-r--r-- | core/Twig.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/Twig.php b/core/Twig.php index 389a579a63..01282ef35d 100644 --- a/core/Twig.php +++ b/core/Twig.php @@ -172,7 +172,13 @@ class Twig } $template .= '>'; - $template .= $message; + + if (!empty($options['raw'])) { + $template .= $message; + } else { + $template .= twig_escape_filter($twigEnv, $message, 'html'); + } + $template .= '</div>'; return $template; |