Table of Contents

Class HtmlEntityProvider

Namespace
AngleSharp.Html
Assembly
AngleSharp.dll

Represents the list of all Html entities.

public sealed class HtmlEntityProvider : IEntityProvider, IReverseEntityProvider
Inheritance
HtmlEntityProvider
Implements
Inherited Members
Extension Methods

Fields

Resolver

Gets the instance to resolve entities.

public static readonly IEntityProvider Resolver

Field Value

IEntityProvider

Properties

ReverseResolver

Gets the instance to reverse resolve entities.

public static IReverseEntityProvider ReverseResolver { get; }

Property Value

IReverseEntityProvider

Methods

GetName(string)

Gets the name of a symbol specified by its value. In case of ambiguity the first name (alphabetically ordered) will be returned.

public string? GetName(string symbol)

Parameters

symbol string

The symbol's value.

Returns

string

The name of the symbol or null.

GetSymbol(string)

Gets a symbol (that ended with a semicolon) specified by its entity name.

public string? GetSymbol(string name)

Parameters

name string

The name of the entity, specified by &NAME; in the Html code.

Returns

string

The string with the symbol or null.

GetSymbolFromTable(int)

Gets the symbol mapped by the table of common redirections.

public static string? GetSymbolFromTable(int code)

Parameters

code int

The original code.

Returns

string

The character wrapped in a string.

IsInCharacterTable(int)

Determines if the given code is actually in the table of common redirections.

public static bool IsInCharacterTable(int code)

Parameters

code int

The code to examine.

Returns

bool

True if the code is in the table, else false.

IsInInvalidRange(int)

Determines if the code is within an invalid range.

public static bool IsInInvalidRange(int code)

Parameters

code int

The code to examine.

Returns

bool

True if it is within an invalid range, false otherwise.

IsInvalidNumber(int)

Determines if the code is an invalid number.

public static bool IsInvalidNumber(int code)

Parameters

code int

The code to examine.

Returns

bool

True if it is an invalid number, false otherwise.