strip_newlines

Filter = strip_newlines

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

INPUT

OUTPUT

{% capture string_with_newlines %} Hello there {% endcapture %} {{ string_with_newlines | strip_newlines }}

Hellothere