From 15ffa01cf5c94a85512dd5047b80e919281aaf80 Mon Sep 17 00:00:00 2001 From: Svante Richter Date: Wed, 13 Apr 2016 15:09:00 +0200 Subject: [PATCH] Fix localeswitcher and twig escaping --- Extension.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Extension.php b/Extension.php index cde48ed..7da80e6 100755 --- a/Extension.php +++ b/Extension.php @@ -212,9 +212,10 @@ public function renderLocaleSwitcher($template = null) if($template === null) { $template = '/twig/_localeswitcher.twig'; } - return $this->app['twig']->render($template, array( + $html = $this->app['twig']->render($template, array( 'locales' => $this->app['config']->get('general/locales') )); + return new \Twig_Markup($html, 'UTF-8'); } /**