Escape/unEscape: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Line 32: Line 32:
== Related Items ==
== Related Items ==


[[encodeURI|encodeURI]], [[decodeURI|decodeURI]], [[encodeURI|encodeURI]], [[decodeURIComponent|decodeURIComponent]]
== Related Items ==
 
[[encodeURI|encodeURI]], [[decodeURI|decodeURI]], [[encodeURIComponent|encodeURIComponent]], [[decodeURIComponent|decodeURIComponent]]


[[Category:Language Reference]]
[[Category:Language Reference]]


[[Category:Variable Handling]]
[[Category:Variable Handling]]

Revision as of 20:52, 30 December 2013

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

Related Items

encodeURI, decodeURI, encodeURIComponent, decodeURIComponent