Table of Contents

THtmlEntities.TryNameToCode Method

Converts an Html entity like "amp" into the unicode code for the character. The input string can also be a # code, in decimal or hexadecimal. (for example &#64).

Syntax

Unit: FlexCel.Core

class function THtmlEntities.TryNameToCode(const EntityName: string; out Code: Integer): Boolean; static;

Parameters

<-> Parameter Type Description
const EntityName string Name of the entity without the starting "&" and the trailing ";"
out Code Integer Unicode representation of the entity.

Returns

True if the code exists, false otherwise.

See also