diff options
Diffstat (limited to 'vendor/twig/twig/doc/filters/nl2br.rst')
-rw-r--r-- | vendor/twig/twig/doc/filters/nl2br.rst | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/vendor/twig/twig/doc/filters/nl2br.rst b/vendor/twig/twig/doc/filters/nl2br.rst deleted file mode 100644 index 694c6724..00000000 --- a/vendor/twig/twig/doc/filters/nl2br.rst +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | ``nl2br`` | ||
2 | ========= | ||
3 | |||
4 | .. versionadded:: 1.5 | ||
5 | The nl2br filter was added in Twig 1.5. | ||
6 | |||
7 | The ``nl2br`` filter inserts HTML line breaks before all newlines in a string: | ||
8 | |||
9 | .. code-block:: jinja | ||
10 | |||
11 | {{ "I like Twig.\nYou will like it too."|nl2br }} | ||
12 | {# outputs | ||
13 | |||
14 | I like Twig.<br /> | ||
15 | You will like it too. | ||
16 | |||
17 | #} | ||
18 | |||
19 | .. note:: | ||
20 | |||
21 | The ``nl2br`` filter pre-escapes the input before applying the | ||
22 | transformation. | ||