Web
Article

Flash Script – Flash’s Escape and Unescape Functions

By Georgina Laidlaw

The function escape("argument") converts the argument to a string and encodes it in a URL-encoded format.

Here, all alphanumeric characters are escaped with % hexadecimal sequences. For example,

escape("escape unescape");

gives as its output:

escape%20unescape

where %20 is space.

The function unescape converts all hexadecimal sequences to ASCII characters. For example,

unescape("escape%20unescape");

produces as its output:

escape unescape

Free Guide:

7 Habits of Successful CTOs

"What makes a great CTO?" Engineering skills? Business savvy? An innate tendency to channel a mythical creature (ahem, unicorn)? All of the above? Discover the top traits of the most successful CTOs in this free guide.

No Reader comments

Recommended
Sponsors
Because We Like You
Free Ebooks!

Grab SitePoint's top 10 web dev and design ebooks, completely free!

Get the latest in Front-end, once a week, for free.