Чтобы самому не париться:
Цитата:
Flash Help:
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 non-alphanumeric 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
|
Цитата:
Flash Help:
Usage
unescape(x)
Parameters
x A string with hexadecimal sequences to escape.
Returns
Nothing.
Description
Top-level function; evaluates the parameter x as a string, decodes the string from URL-encoded format (converting all hexadecimal sequences to ASCII characters), and returns the string.
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]}
See also
escape
|