DecodeValue (open)

Converts HTML entities back to their characters

Syntax

// Core function, no LOADLIB necessary

STRING FUNCTION DecodeValue(STRING text)

Parameters

STRING text

String to decode

Return value

STRING

The decoded string

Description

DecodeValue converts value encoded strings to UNICODE(UTF-8).

Examples

// returns "<HTML>"
STRING example1 := DecodeValue ("<HTML>");

// returns "Johnny & Jane"
STRING example2 := DecodeValue ("Johnny &#38; Jane");

// returns "Johnny says: \n Hello world!"
STRING example3 := DecodeValue ("Johnny says: &#10; Hello world!");