Skip to content

url_param_escape

Escapes a string for a query parameter.

string | url_param_escape

string

Liquid
/search?q={{ 'oud & musk' | url_param_escape }}
Output
/search?q=oud+%26+musk

Shopify: Same as Shopify.

Since theme platform 1.0.

Was this page helpful?