url_encode - Liquid Filter Reference - 1.0.0

Filter Name url_encode
Group Text
Version 1.0.0

Description

Converts any URL-unsafe characters in a string into percent-encoded characters.

Examples

{{ "john@example.com" | url_encode }}
john%40example.com
Note that url_encode will turn a space into a + sign instead of a percent-encoded character:
{{ "About Us" | url_encode }}
About+Us

Back to Filter List

Back to Liquid Reference for 1.0.0

 

 
Back to Documentation