DecodeHTML (open)

Converts HTML back to special characters.

Syntax

// Core function, no LOADLIB necessary

STRING FUNCTION DecodeHTML(STRING text)

Parameters

STRING text

String to decode

Return value

STRING

The decoded string

Description

DecodeHTML converts an HTML encoded string to UNICODE(UTF-8). It decodes entities like DecodeValue does, strips out HTML tags and translates tags into linebreaks.

Examples

// returns '<HTML>'
STRING example1 := DecodeHTML("&#60;HTML&#62;");

// returns "Johnny \n Jane"
STRING example2 := DecodeHTML("Johnny <br /> Jane");