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

Namespace: FlexCel.Core

public static Boolean TryNameToCode(String EntityName, out Int32 Code)

Parameters

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

Returns

True if the code exists, false otherwise.

See also