Added a notice in the nl2br filter documentation about the proper Twig version to use it

This commit is contained in:
Javier Eguíluz
2011-12-23 10:26:49 +01:00
parent 99b2c5bf99
commit 7194b1adaa
+3
View File
@@ -1,6 +1,9 @@
``nl2br``
=========
.. versionadded:: 1.5
The nl2br filter was added in Twig 1.5.
The ``nl2br`` filter inserts HTML line breaks before all newlines in a string:
.. code-block:: jinja