Skip to content

url_encode

Encodes a string for a URL (spaces become +).

string | url_encode

string

Liquid
{{ 'oud & musk' | url_encode }}
Output
oud+%26+musk

Shopify: Same as Shopify.

Since theme platform 1.0.

Was this page helpful?