strip_newlines

從字串中移除任何換行符號(斷行)。

輸入

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

{{ string_with_newlines | strip_newlines }}

輸出



Hellothere