From 6662660eb425865d8bc96828305478c8b16a491d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Backhaus?= Date: Mon, 19 Oct 2020 15:18:37 +0200 Subject: [PATCH] Adjust wording at Generating URLs At "Generating URLs in JavaScript" the Twig escape filter is called a escape function. However in context of Twig this is a filter and I guess it should use the right wording also in the Symfony docs. --- routing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routing.rst b/routing.rst index 9bd09e531cc..75755c31d40 100644 --- a/routing.rst +++ b/routing.rst @@ -1917,7 +1917,7 @@ Generating URLs in JavaScript If your JavaScript code is included in a Twig template, you can use the ``path()`` and ``url()`` Twig functions to generate the URLs and store them in -JavaScript variables. The ``escape()`` function is needed to escape any +JavaScript variables. The ``escape()`` filter is needed to escape any non-JavaScript-safe values: .. code-block:: html+twig