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