Modifier: nl2br


Replaces line breaks with <br> tags.

summary: |
  This is a summary
  on multiple lines
{{ summary | nl2br }}
This is a summary
on multiple lines

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on March 31, 2016