url_encode - Liquid Filter Reference - 0.11.2

Filter Name url_encode
Group Text
Version 0.11.2

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 0.11.2

 

 
Back to Documentation