mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-12 10:26:32 +00:00
merged branch javiereguiluz/add-nl2br-notice (PR #568)
Commits
-------
7194b1a Added a notice in the `nl2br` filter documentation about the proper Twig version to use it
Discussion
----------
Added a notice in the `nl2br` filter documentation ...
... about the proper Twig version to use it (1.5)
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