Marten's templating system should provide a convenient linebreaks template filter allowing to replace all newlines in a text to HTML line breaks (<br />).
For example, consider the following snippet:
{{ value | linebreaks }}
If value is Hello\nWorld, then the output of the rendered snippet would be Hello<br />World.
Description
Marten's templating system should provide a convenient
linebreaks
template filter allowing to replace all newlines in a text to HTML line breaks (<br />
).For example, consider the following snippet:
If
value
isHello\nWorld
, then the output of the rendered snippet would beHello<br />World
.