encode_uri
Encode text for use as a URI component.
Syntax
1{{ value | encode_uri }}Usage
- Reserved characters such as
/,?, and&are encoded. - For arrays and objects, including serialized collections from another filter, string values are formatted recursively while keys and non-string values are preserved.
Example
Open in Playground| Data | |
|---|---|
| Template | |
| Output | |