linebreaksbrΒΆ

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

The following string:

{{ "foo\nbar"|linebreaksbr }}

will evaluate to foo<br />bar.

See also

brlinebreaks

Previous topic

force_escape

Next topic

slugify

Versions

Actions