UrlEncode method (text)

Encodes this text as a URL.

Syntax

text.UrlEncode

Returns the value of text encoded as a URL.

Example

{% Var text = "Apple pie" %}

{{ text.UrlEncode }}

The above example would output: Apple%20pie