8000 minor #5121 As per twigphp/Twig#472, automatic escaping is not yet av… · symfony/symfony-docs@e7cdb2b · GitHub
[go: up one dir, main page]

Skip to content

Commit e7cdb2b

Browse files
committed
minor #5121 As per twigphp/Twig#472, automatic escaping is not yet available (Ocramius)
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #5121). Discussion ---------- As per twigphp/Twig#472, automatic escaping is not yet available While it would be a cool feature, it is also impossible to apply automatic escaping in most cases. Advertising this as a out-of-the-box feature is problematic, as it probably mislead multiple developers that are using the tool without applying proper contextual escaping. Ref: twigphp/Twig#472 Commits ------- 94a8655 As per twigphp/Twig#472, automatic escaping is not yet available
2 parents bce3f04 + 94a8655 commit e7cdb2b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

book/templating.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ Throughout this chapter, template examples will be shown in both Twig and PHP.
135135
web designers everywhere.
136136

137137
Twig can also do things that PHP can't, such as whitespace control,
138-
sandboxing, automatic and contextual output escaping, and the inclusion of
139-
custom functions and filters that only affect templates. Twig contains
140-
little features that make writing templates easier and more concise. Take
141-
the following example, which combines a loop with a logical ``if``
138+
sandboxing, automatic HTML escaping, manual contextual output escaping,
139+
and the inclusion of custom functions and filters that only affect templates.
140+
Twig contains little features that make writing templates easier and more concise.
141+
Take the following example, which combines a loop with a logical ``if``
142142
statement:
143143

144144
.. code-block:: html+jinja

0 commit comments

Comments
 (0)
0