📅  最后修改于: 2022-03-11 14:58:39.538000             🧑  作者: Mango
1) Simple remove filter:
{% assign foo = 'foo bar' | remove: " " %}
2) Using replace:
{% assign foo = 'foo bar' | replace: " ", '' %}
3) Using split + join:
{% assign foo = 'foo bar' | split: " " | join: ' ' %}