DecodeJava (open)
Converts special characters as used in javascripts.
Syntax
// Core function, no LOADLIB necessary
STRING FUNCTION DecodeJava(STRING text)Parameters
STRING textString to decode
Return value
STRINGThe 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\')");