Escape/unEscape: Difference between revisions
Jump to navigation
Jump to search
Adding deprecated note. |
|||
Line 1: | Line 1: | ||
{{Deprecated|newvarlink=encodeURIComponent/decodeURIComponent|newvarname=encodeURIComponent/decodeURIComponent}} | |||
Escape(''string'') | Escape(''string'') | ||
Revision as of 20:57, 14 July 2014
This deprecated feature should no longer be used, but is still available for reasons of backwards compatibility.
Please see encodeURIComponent/decodeURIComponent for an alternative way to use this feature. |
Escape(string)
unEscape(string)
Description
Escape returns a string with all special characters turned into a % character followed by the hex value of the character.
unEscape converts a string with special characters turned into a normal string.
Example (Basic)
Print Escape("ABC!@#$%") Print UnEscape("ABC%0d%0aDEF")
Example (JavaScript)
NSB.Print(escape("ABC!@#$%")); NSB.Print(unescape("ABC%0d%0aDEF"));
Output
ABC%21@%23%24%25 ABC DEF
Related Items
encodeURI, decodeURI, encodeURIComponent, decodeURIComponent