LassoScript Utility
Basics Browse Detail

[Decode_URL]

Tag Link [Decode_URL] Category Encoding
Type Substitution Source Available No
Support Preferred Version 2.5
Change Unchanged Data Source Any
Output Type Bytes Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x, Lasso 2.5

Description

[Decode_URL] takes a single argument which is a URL to be decoded. It decodes any URL entities in the string. This tag can be used to decode a value which was encoded using [Encode_URL] or [Encode_StrictURL]. The [Decode_URL] tag returns a byte stream.

Note: Lasso automatically decodes values returned from the [Action_Param] tag.

Syntax

[Decode_URL: 'Decoding Value']

Parameters

Required Parameters
Decoding Value The value to be decoded.

Examples

To decode text that was encoded with URL encoding:

Use the [Decode_URL] tag. The following example decodes a string that was encoded using strict URL encoding to demonstrate what characters are converted from URL entities.

[Decode_URL: 'default.lasso%3fma%f1ana%3dtomorrow']

default.lasso?ma–ana=tomorrow