diff --git a/routing/generate_url_javascript.rst b/routing/generate_url_javascript.rst index 455e36c99d2..d1666b992f9 100644 --- a/routing/generate_url_javascript.rst +++ b/routing/generate_url_javascript.rst @@ -26,10 +26,12 @@ variables. The ``escape()`` function helps escape any non-JavaScript-safe values But if you *actually* need to generate routes in pure JavaScript, consider using the `FOSJsRoutingBundle`_. It makes the following possible: -.. code-block:: javascript +.. code-block:: html+twig + .. _`FOSJsRoutingBundle`: https://github.com/FriendsOfSymfony/FOSJsRoutingBundle