The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Declaration:function HTMLEntityToAnsi (Entity: string): char;

The function HTMLEntityToAnsi converts an HTML entity contained in parameter Entity into the corresponding ANSI character. Valid entities are the Latin-1 (ISO-8859-1) characters and the characters ", <, >, &, and a non-breaking space. The entities may be either encoded by their names, their decimal, or their hexadecimal representation.

If Entity contains an entity which is not recognized by the function HTMLEntityToAnsi a zero byte (#0) is returned.

Hint: A table of Latin-1 codes can be found in the description of the array constant HTMLLat1Entities.

Last Update: 2012-Oct-20