filter_linebreaksbr (zotonic_mod_base v1.0.0-rc.17)

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

The following string:

{{ "foo\nbar"|linebreaksbr }}

will evaluate to foo<br /\>bar.

See also

brlinebreaks

Summary

Functions

linebreaksbr(S, Context)