T-W > unescape

unescape

Syntax

unescape(x);

Arguments

x A string with hexadecimal sequences to escape.

Description

Top-level function; evaluates the argument x as a string, decodes the string from a URL-encoded format (converting all hexadecimal sequences to ASCII characters), and returns the string.

Player

Flash 5 or later.

Example

The following example illustrates the escape-to-unescape conversion process.

escape("Hello{[World]}");

The escaped result is as follows:

("Hello%7B%5BWorld%5D%7D');

Use unescape to return to the original format:

unescape("Hello%7B%5BWorld%5D%7D")

The result is as follows:

Hello{[World]}