From 12a5d026edf89830f1321a1e9c9363d699d0e99b Mon Sep 17 00:00:00 2001 From: Bilal Amarni Date: Mon, 13 May 2013 13:14:39 +0200 Subject: [PATCH] [doc] switched a BC call --- doc/api.rst | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api.rst b/doc/api.rst index dbba705..9aa72a6 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -348,10 +348,10 @@ tag, ``autoescape``, and a filter, ``raw``. When creating the escaper extension, you can switch on or off the global output escaping strategy:: - $escaper = new Twig_Extension_Escaper(true); + $escaper = new Twig_Extension_Escaper('html'); $twig->addExtension($escaper); -If set to ``true``, all variables in templates are escaped (using the ``html`` +If set to ``html``, all variables in templates are escaped (using the ``html`` escaping strategy), except those using the ``raw`` filter: .. code-block:: jinja -- 1.7.2.5