escape

Availability

Flash Player 5.

Usage

escape(expression)

Parameters

expression The expression to convert into a string and encode in a URL-encoded format.

Returns

Nothing.

Description

Function; converts the parameter to a string and encodes it in a URL-encoded format, where all nonalphanumeric characters are escaped with % hexadecimal sequences.

Example

Running the following code gives the result, Hello%7B%5BWorld%5D%7D.

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

See also

unescape