JavaScript - The escape, encodeURI, and encodeURIComponent methods
// JavaScript - The escape, encodeURI, and encodeURIComponent methods:
The escape function is responsible for HTML encoding a string. Basically, the
escape function take invalid characters, encode them so that they can be use
in the HTML. The unescape function does the decoding. The decodeURI and
encodeURI methods are for handling invalid characters in a URL. The
encodeURIComponent and decodeURIComponent are for handling invalid characters
in URI components.
page revision: 0, last edited: 14 Nov 2016 08:01





