Table of Contents

Interface IHtmlParser

Namespace
AngleSharp.Html.Parser
Assembly
AngleSharp.dll

Represents the interface of an HTML parser.

public interface IHtmlParser : IParser, IEventTarget
Inherited Members
Extension Methods

Methods

ParseDocument(Stream)

Parses the stream and returns the result.

IHtmlDocument ParseDocument(Stream source)

Parameters

source Stream

Returns

IHtmlDocument

ParseDocument(string)

Parses the string and returns the result.

IHtmlDocument ParseDocument(string source)

Parameters

source string

Returns

IHtmlDocument

ParseDocumentAsync(IDocument, CancellationToken)

Populates the given HTML document asynchronously.

Task<IDocument> ParseDocumentAsync(IDocument document, CancellationToken cancel)

Parameters

document IDocument
cancel CancellationToken

Returns

Task<IDocument>

ParseDocumentAsync(Stream, CancellationToken)

Parses the stream asynchronously.

Task<IHtmlDocument> ParseDocumentAsync(Stream source, CancellationToken cancel)

Parameters

source Stream
cancel CancellationToken

Returns

Task<IHtmlDocument>

ParseDocumentAsync(string, CancellationToken)

Parses the string asynchronously.

Task<IHtmlDocument> ParseDocumentAsync(string source, CancellationToken cancel)

Parameters

source string
cancel CancellationToken

Returns

Task<IHtmlDocument>

ParseFragment(Stream, IElement)

Parses the stream and returns the result.

INodeList ParseFragment(Stream source, IElement contextElement)

Parameters

source Stream
contextElement IElement

Returns

INodeList

ParseFragment(string, IElement)

Parses the string and returns the result.

INodeList ParseFragment(string source, IElement contextElement)

Parameters

source string
contextElement IElement

Returns

INodeList

ParseHead(Stream)

Parses the stream and returns the head.

IHtmlHeadElement? ParseHead(Stream source)

Parameters

source Stream

Returns

IHtmlHeadElement

ParseHead(string)

Parses the string and returns the head.

IHtmlHeadElement? ParseHead(string source)

Parameters

source string

Returns

IHtmlHeadElement

ParseHeadAsync(Stream, CancellationToken)

Parses the stream asynchronously.

Task<IHtmlHeadElement?> ParseHeadAsync(Stream source, CancellationToken cancel)

Parameters

source Stream
cancel CancellationToken

Returns

Task<IHtmlHeadElement>

ParseHeadAsync(string, CancellationToken)

Parses the string asynchronously.

Task<IHtmlHeadElement?> ParseHeadAsync(string source, CancellationToken cancel)

Parameters

source string
cancel CancellationToken

Returns

Task<IHtmlHeadElement>