Docs: Add filter "urlencode" with example (#74034)
* Add example for URLENCODE filter
This commit is contained in:
parent
eb631c1881
commit
73c08df2db
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
--------------
|
||||
|
||||
|
|
Loading…
Reference in a new issue