📜  剥离删除制表符 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:39.538000             🧑  作者: Mango

代码示例1
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: ' ' %}