strip_newlines
Removes any newline characters (line breaks) from a string
Input
-
{% capture foo %} Hello world {% endcapture %}
{{ foo | strip_newlines }}
Output
-
Helloworld
Removes any newline characters (line breaks) from a string
{% capture foo %}
Hello
world
{% endcapture %}
{{ foo | strip_newlines }}
Helloworld