From 70d03042df91f3c6766bcb5b48322a455e3c8ea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lavergne?= Date: Fri, 3 Feb 2017 10:09:52 -0500 Subject: [PATCH] Mention autoescape=true deprecation (issue #2386) --- doc/deprecated.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/deprecated.rst b/doc/deprecated.rst index 3fabb30cc..9778b0fa6 100644 --- a/doc/deprecated.rst +++ b/doc/deprecated.rst @@ -206,6 +206,9 @@ Miscellaneous ``Twig_TemplateInterface::getEnvironment()`` are deprecated and will be removed in 2.0. +* As of Twig 1.21, setting the environment option ``autoescape`` to ``true`` is + deprecated and will be removed in 2.0. Set ``"html"`` explicitly instead. + * As of Twig 1.27, ``Twig_Error::getTemplateFile()`` and ``Twig_Error::setTemplateFile()`` are deprecated. Use ``Twig_Error::getTemplateName()`` and ``Twig_Error::setTemplateName()``