diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_js.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_js.html.twig index f13edfcfebf52..9da75d0559219 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_js.html.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_js.html.twig @@ -15,7 +15,7 @@ Sfjs.load( 'sfwdt{{ token }}', - '{{ path("_wdt", { "token": token }) }}', + '{{ path("_wdt", { "token": token })|escape('js') }}', function(xhr, el) { /* Evaluate embedded scripts inside the toolbar */