From b68bd0684ec412fcecbb593060bdcc00ada41e88 Mon Sep 17 00:00:00 2001 From: Jakob Schlyter Date: Mon, 13 Jul 2020 18:18:18 +0200 Subject: [PATCH] Template urlencode (#13983) --- source/_docs/configuration/templating.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/_docs/configuration/templating.markdown b/source/_docs/configuration/templating.markdown index cf889f05507..9ebf93a27f2 100644 --- a/source/_docs/configuration/templating.markdown +++ b/source/_docs/configuration/templating.markdown @@ -343,6 +343,10 @@ Some of these functions can also be used in a [filter](https://jinja.palletsproj - Filter `value_one|bitwise_or(value_two)` perform a bitwise or(\|) operation with two values. - Filter `ord` will return for a string of length one an integer representing the Unicode code point of the character when the argument is a Unicode object, or the value of the byte when the argument is an 8-bit string. +### String filters + +- Filter `urlencode` will convert an object to a percent-encoded ASCII text string (e.g., for HTTP requests using `application/x-www-form-urlencoded`). + ### Regular expressions - Filter `string|regex_match(find, ignorecase=False)` will match the find expression at the beginning of the string using regex.