DecodeJava (open)
Converts special characters as used in javascripts.
Syntax
// Core function, no LOADLIB necessary
STRING FUNCTION DecodeJava(STRING text)
Parameters
STRING text
String to decode
Return value
STRING
The decoded string
Description
DecodeJava converts Java encoded strings back to strings without Java encoded ' (single quotes), " (double quotes) and \ (backslashes).
Examples
// returns "alert('Johnny and Jane')"
STRING example1 := DecodeJava("alert(\'Johnny and Jane\')");
// returns "alert('A\n\b')"
STRING example2 := DecodeJava("alert(\'A\\n\\b\')");