newline_to_br - Liquid Filter Reference - 0.11.4

Filter Name newline_to_br
Group Text
Version 0.11.4

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 Filter List

Back to Liquid Reference for 0.11.4

 

 
Back to Documentation