Skip to content

$uri

$uri will encode or decode an URL.

Usage

$uri[text;type?]

Parameters

FieldTypeDescriptionRequired
textstringText to encode/decode.true
type?stringWhat to do with the given text.
1. encode (default)
2. decode
false

Example(s)

This will encode a given text:

1
client.command({
2
name: "encode",
3
code: `
4
$uri[aoi.js is great :);encode]
5
`
6
});

This will decode a given text:

1
client.command({
2
name: "decode",
3
code: `
4
$uri[aoi.js%20is%20great%20%3A);decode]
5
`
6
});