filter_urlencode (zotonic_mod_base v1.0.0-rc.17)

Make a text safe for URLs.

Translates all url unsafe characters in the value to their percent encoding.

For example:

{{ value|urlencode }}

When value is “msg=Hello&World” then the output is “msg%3DHello%26World”.

See also

sanitize_url, is_site_url, url_abs, url, urldecode

Summary

Functions

urlencode/2