nl2br Modifier

Replaces line breaks with <br> tags.

summary: |
This is a summary
on multiple lines
{{ summary | nl2br }}
{!! Statamic::modify($summary)->nl2br() !!}
This is a summary
on multiple lines
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →