Permalink
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (7 sloc) 260 Bytes
.. highlight:: django

Translate ASCII newlines (\n) into HTML <br /> elements.

The following string:

{{ "foo\nbar"|linebreaksbr }}

will evaluate to foo<br />bar.

.. seealso:: :ref:`filter-brlinebreaks`