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

length

Next topic

ljust

Versions

Actions