Skip to main content

url_param_escape

string | url_param_escape
returns string

Escapes any characters in a string that are unsafe for URL parameters.

The url_param_escape filter escapes the same characters as url_escape, with the addition of &.

{{ '<p>Health & Love potions</p>' | url_param_escape }}

Output

%3Cp%3EHealth%20%26%20Love%20potions%3C/p%3E
Was this page helpful?