newline_to_br
Turns line breaks into <br>.
Syntax
Section titled “Syntax”string | newline_to_brReturns
Section titled “Returns”string
Example
Section titled “Example”{% capture text %}Line 1Line 2{% endcapture %}{{ text | newline_to_br }}Line 1<br />Line 2Compatibility
Section titled “Compatibility”Shopify: Same as Shopify.
Since theme platform 1.0.
Was this page helpful?

