newline_to_br - Liquid Filter Reference - 0.11.5
Filter Name | newline_to_br |
Group | Text |
Version | 0.11.5 |
Description
Inserts an HTML line break in front of each newline in a string.
Examples
{% capture string_with_newlines %}
Hello
there
{% endcapture %}
{{ string_with_newlines | newline_to_br }}
<br />
Hello<br />
there<br />
Back to Liquid Reference for 0.11.5
Back to Documentation