url_encode
The url_encode filter encodes a string to be part of a URL. Or, it converts an array to be a query string.
{{ variable|url_encode }}
{{ {'param': 'value', 'foo': 'bar'}|url_encode }}
The url_encode filter encodes a string to be part of a URL. Or, it converts an array to be a query string.
{{ variable|url_encode }}
{{ {'param': 'value', 'foo': 'bar'}|url_encode }}