strip_newlines - Liquid Filter Reference - 1.1.0

Filter Name strip_newlines
Group Text
Version 1.1.0

Description

Removes any newline characters (line breaks) from a string.

Examples

{% capture string_with_newlines %}
Hello
World!
{% endcapture %}

{{ string_with_newlines | strip_newlines }}
HelloWorld!

Back to Filter List

Back to Liquid Reference for 1.1.0

 

 
Back to Documentation