Skip to content

escape_once

Escapes HTML without escaping existing entities twice.

string | escape_once

string

Liquid
{{ '1 < 2 & 3' | escape_once }}
Output
1 < 2 & 3

Shopify: Same as Shopify.

Since theme platform 1.0.

Was this page helpful?