escape_once

escape_once

Escapes a string without changing existing escaped entities. It doesn’t change strings that don’t have anything to escape.

Input

{{ "1 < 2 & 3" | escape_once }}

Output

1 &lt; 2 &amp; 3

Input

{{ "1 &lt; 2 &amp; 3" | escape_once }}

Output

1 &lt; 2 &amp; 3

© 2005, 2006 Tobias Luetke
Licensed under the MIT License.
https://shopify.github.io/liquid/filters/escape_once/

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部