diff options
author | saruter <57154423+saruter@users.noreply.github.com> | 2021-03-25 20:20:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-25 20:20:41 +0100 |
commit | 73c08df2db91c7d7cbf09ab211a837878c84c7b9 (patch) | |
tree | 3897e1aa8d1331d3c597e06f5bfe387017064aae | |
parent | use present tense for porting guide entries (#74021) (diff) | |
download | ansible-73c08df2db91c7d7cbf09ab211a837878c84c7b9.tar.xz ansible-73c08df2db91c7d7cbf09ab211a837878c84c7b9.zip |
Docs: Add filter "urlencode" with example (#74034)
* Add example for URLENCODE filter
-rw-r--r-- | docs/docsite/rst/user_guide/playbooks_filters.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/docsite/rst/user_guide/playbooks_filters.rst b/docs/docsite/rst/user_guide/playbooks_filters.rst index 65205f3989..984de55e4b 100644 --- a/docs/docsite/rst/user_guide/playbooks_filters.rst +++ b/docs/docsite/rst/user_guide/playbooks_filters.rst @@ -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 -------------- |