Browse code

[doc] switched a BC call

Bilal Amarni authored on 13/05/2013 11:14:39
Showing 1 changed files
... ...
@@ -348,10 +348,10 @@ tag, ``autoescape``, and a filter, ``raw``.
348 348
 When creating the escaper extension, you can switch on or off the global
349 349
 output escaping strategy::
350 350
 
351
-    $escaper = new Twig_Extension_Escaper(true);
351
+    $escaper = new Twig_Extension_Escaper('html');
352 352
     $twig->addExtension($escaper);
353 353
 
354
-If set to ``true``, all variables in templates are escaped (using the ``html``
354
+If set to ``html``, all variables in templates are escaped (using the ``html``
355 355
 escaping strategy), except those using the ``raw`` filter:
356 356
 
357 357
 .. code-block:: jinja