$url

Encodes or decodes the provided text in the URL encoding format.

URL encoding is a method of converting reserved, unsafe, or non-ASCII characters to a URL format that is universally accepted and understood by all web browsers and servers while URL decoding is the vice-versa of URL encoding.

Syntax

$url[Mode;Text]

Parameters

  • Mode (Type: Enum || Flag: Required): Whether to encode or decode the provided text. Accepts either encode or decode as input.
  • Text (Type: String || Flag: Emptiable): The text to change.

Example

  • Encoding

    $nomention
    https://example.url/encode?convert=$url[encode;Hello world!!]
    

    example

  • Decoding

    $nomention
    $url[decode;https://example.url/decode?convert=Hello+world%21%21]
    

    example