mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-10 17:36:53 +00:00
Added a notice in the nl2br filter documentation about the proper Twig version to use it
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user