linebreaksbr

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

The following string:

{{ "foo\nbar"|linebreaksbr }}

will evaluate to foo<br />bar.

Edit on GitHub

force_escape Character escaping slugify

Referred by

Filters

Filters transform template variables before they are rendered.