Skip to content

Commit

Permalink
minor #5121 As per twigphp/Twig#472, automatic escaping is not yet av…
Browse files Browse the repository at this point in the history
…ailable (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
  • Loading branch information
wouterj committed Mar 29, 2015
2 parents bce3f04 + 94a8655 commit e7cdb2b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions book/templating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ Throughout this chapter, template examples will be shown in both Twig and PHP.
web designers everywhere.

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

.. code-block:: html+jinja
Expand Down

0 comments on commit e7cdb2b

Please sign in to comment.