diff --git a/src/TwigRenderer.php b/src/TwigRenderer.php index 43eefae..bb95441 100644 --- a/src/TwigRenderer.php +++ b/src/TwigRenderer.php @@ -49,7 +49,7 @@ function __construct(array $config) { private function createTwigEnv($loaders) { $twig = new \Twig_Environment($loaders, [ 'debug' => $this->config['debug'], - 'autoescape' => $this->config['autoescape'], + 'autoescape' => $this->config['autoescape'] ? 'html' : false, 'cache' => false, // @todo Implement Twig caching ]);