HtmlEntityParser Class

An inline parser for HTML entities.

public class HtmlEntityParser : InlineParser

See also

Inheritance
InlineParser HtmlEntityParser

Constructors

NameDescription
HtmlEntityParser()Initializes a new instance of the HtmlEntityParser class.

HtmlEntityParser()

HtmlEntityParser.cs

Initializes a new instance of the HtmlEntityParser class.

public HtmlEntityParser()

Methods

NameDescription
Match(InlineProcessor, StringSlice)Attempts to match the parser at the current position.
TryParse(StringSlice, string?, int)Attempts to parse.

Match(InlineProcessor, StringSlice)

HtmlEntityParser.cs

Attempts to match the parser at the current position.

public override bool Match(InlineProcessor processor, ref StringSlice slice)

Parameters

processor InlineProcessor
slice StringSlice

Returns

bool

TryParse(StringSlice, string?, int)

HtmlEntityParser.cs

Attempts to parse.

public static bool TryParse(ref StringSlice slice, out string? literal, out int match)

Parameters

slice StringSlice
literal string?
match int

Returns

bool