Liquid Filter Reference for newline_to_br - v0.9.5

Filter Name newline_to_br
Group Text
Version 0.9.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 Filter List

Back to Liquid Reference for 0.9.5

 

 
Back to Documentation