Skip to main content

url_encode

string | url_encode
returns string

Converts any URL-unsafe characters in a string to the percent-encoded equivalent.


Note

Spaces are converted to a + character, instead of a percent-encoded character.


{{ 'test@test.com' | url_encode }}

Output

test%40test.com
Was this page helpful?