strip_newlines 去除字符串中换行符
去除字符串中的所有换行符。
输入
{% capture string_with_newlines %}
Hello
jekyll.1px.run
{% endcapture -%}
{{ string_with_newlines | strip_newlines }}
输出
Hellojekyll.1px.run
去除字符串中的所有换行符。
输入
{% capture string_with_newlines %}
Hello
jekyll.1px.run
{% endcapture -%}
{{ string_with_newlines | strip_newlines }}
输出
Hellojekyll.1px.run