Template urlencode (#13983)

This commit is contained in:
Jakob Schlyter 2020-07-13 18:18:18 +02:00 committed by GitHub
parent fc8d22718e
commit b68bd0684e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.