encode_uri

Encode text for use as a URI component.

View Markdown

Syntax

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