LiquidJS

TutorialsTagsFiltersPlaygroundAPI
Github Support
Overviewabsappendat_leastat_mostcapitalizeceilcompactconcatdatedefaultdivided_bydowncaseescapeescape_oncefirstfloorjoinjsonlastlstripmapminusmodulonewline_to_brplusprependrawremoveremove_firstremove_lastreplacereplace_firstreplace_lastreverseroundrstripsizeslicesortsort_naturalsplitstripstrip_htmlstrip_newlinestimestruncatetruncatewordsuniqupcaseurl_decodeurl_encodewhere

strip_newlines

v1.9.1

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

Input

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

{{ string_with_newlines | strip_newlines }}

Output


Hellothere
Last updated: 2023-01-22 PrevNext
Contents
Back to Top
© 2023 Harttle
Documentation licensed under CC BY 4.0.
    TutorialsTagsFiltersPlaygroundAPI
Overviewabsappendat_leastat_mostcapitalizeceilcompactconcatdatedefaultdivided_bydowncaseescapeescape_oncefirstfloorjoinjsonlastlstripmapminusmodulonewline_to_brplusprependrawremoveremove_firstremove_lastreplacereplace_firstreplace_lastreverseroundrstripsizeslicesortsort_naturalsplitstripstrip_htmlstrip_newlinestimestruncatetruncatewordsuniqupcaseurl_decodeurl_encodewhere