Docs: Add filter "urlencode" with example (#74034)

* Add example for URLENCODE filter
This commit is contained in:
saruter 2021-03-25 20:20:41 +01:00 committed by GitHub
parent eb631c1881
commit 73c08df2db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1405,6 +1405,14 @@ which produces this output:
# host: myhost
#
URLEncode Variables
-------------------
The ``urlencode`` filter quotes data for use in a URL path or query using UTF-8::
{{ 'Trollhättan' | urlencode }}
# => 'Trollh%C3%A4ttan'
Splitting URLs
--------------