mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 19:06:40 +00:00
[Doc] Fixed small error in code example
This commit is contained in:
committed by
Fabien Potencier
parent
cdccdbbdf3
commit
dc798d3bbb
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user