diff --git a/doc/filters/escape.rst b/doc/filters/escape.rst index fc9771acd..a3e193f02 100644 --- a/doc/filters/escape.rst +++ b/doc/filters/escape.rst @@ -97,7 +97,7 @@ used in the ``escape`` call) and the second one must be a valid PHP callable: .. code-block:: php $twig = new Twig_Environment($loader); - $twig->getExtension('core')->setEscaper('csv', 'csv_escaper')); + $twig->getExtension('core')->setEscaper('csv', 'csv_escaper'); When called by Twig, the callable receives the Twig environment instance, the string to escape, and the charset.