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 }}
{{ 'test@test.com' | url_encode }}
Output
test%40test.com
Was this page helpful?