From fe3d615aa46d28a35f5327e3646cf0c6f50a7d25 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 26 Sep 2024 08:58:21 +0200 Subject: [PATCH] Be more precise about double-escaping --- doc/tags/autoescape.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/tags/autoescape.rst b/doc/tags/autoescape.rst index 8c621d3a8..2708009c6 100644 --- a/doc/tags/autoescape.rst +++ b/doc/tags/autoescape.rst @@ -41,7 +41,8 @@ Functions returning template data (like :doc:`macros` and .. note:: Twig is smart enough to not escape an already escaped value by the - :doc:`escape<../filters/escape>` filter. + :doc:`escape<../filters/escape>` filter when the automatic escaping + strategy is the same as the one applied by the escape filter. .. note::