From c760d62a67bc1771fbb476a2b6cc2abaa7a0e094 Mon Sep 17 00:00:00 2001 From: rosier Date: Fri, 11 Jan 2019 20:02:58 +0100 Subject: [PATCH] Add missing ] --- doc/advanced_legacy.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/advanced_legacy.rst b/doc/advanced_legacy.rst index e449dcbfb..3fb8297e0 100644 --- a/doc/advanced_legacy.rst +++ b/doc/advanced_legacy.rst @@ -248,7 +248,7 @@ before printing. If your filter acts as an escaper (or explicitly outputs HTML or JavaScript code), you will want the raw output to be printed. In such a case, set the ``is_safe`` option:: - $filter = new Twig_Filter_Function('nl2br', ['is_safe' => ['html']); + $filter = new Twig_Filter_Function('nl2br', ['is_safe' => ['html']]); Some filters may need to work on input that is already escaped or safe, for example when adding (safe) HTML tags to originally unsafe output. In such a