diff --git a/doc/tags/autoescape.rst b/doc/tags/autoescape.rst index 2708009c6..594bc6a07 100644 --- a/doc/tags/autoescape.rst +++ b/doc/tags/autoescape.rst @@ -46,7 +46,8 @@ Functions returning template data (like :doc:`macros` and .. note:: - Twig does not escape static expressions: + Twig does not escape string literals printed directly, but it escapes + variables, even when they were set to a literal: .. code-block:: html+twig @@ -54,7 +55,12 @@ Functions returning template data (like :doc:`macros` and {{ hello }} {{ "world" }} - Will be rendered "Hello **world**". + Will be rendered as: + + .. code-block:: html + + <strong>Hello</strong> + world .. note::