JavaScript: Encode URL, Escape String
encodeURI
/decodeURI
- Changes illegal URL characters to percent encoded form. [see encodeURI]
encodeURIComponent
/decodeURIComponent
-
Like
encodeURI
but changes more chars, including slash and colon inhttp://
. [see encodeURIComponent] escape
/unescape
- deprecated. Changes some characters to a percent encoded form of the char's Unicode codepoint. [see escape]
Note: these functions are properties of the Global Object .