Table of Contents

Class HtmlParserExtensions

Namespace
AngleSharp.Html.Parser
Assembly
AngleSharp.dll

Extensions for the IHtmlParser instances.

public static class HtmlParserExtensions
Inheritance
HtmlParserExtensions
Inherited Members

Methods

ParseDocumentAsync(IHtmlParser, IDocument)

Populates the given document asynchronously.

public static Task<IDocument> ParseDocumentAsync(this IHtmlParser parser, IDocument document)

Parameters

parser IHtmlParser
document IDocument

Returns

Task<IDocument>

ParseDocumentAsync(IHtmlParser, Stream)

Parses the stream asynchronously.

public static Task<IHtmlDocument> ParseDocumentAsync(this IHtmlParser parser, Stream source)

Parameters

parser IHtmlParser
source Stream

Returns

Task<IHtmlDocument>

ParseDocumentAsync(IHtmlParser, string)

Parses the string asynchronously.

public static Task<IHtmlDocument> ParseDocumentAsync(this IHtmlParser parser, string source)

Parameters

parser IHtmlParser
source string

Returns

Task<IHtmlDocument>

ParseHeadAsync(IHtmlParser, Stream)

Parses the stream asynchronously.

public static Task<IHtmlHeadElement?> ParseHeadAsync(this IHtmlParser parser, Stream source)

Parameters

parser IHtmlParser
source Stream

Returns

Task<IHtmlHeadElement>

ParseHeadAsync(IHtmlParser, string)

Parses the string asynchronously.

public static Task<IHtmlHeadElement?> ParseHeadAsync(this IHtmlParser parser, string source)

Parameters

parser IHtmlParser
source string

Returns

Task<IHtmlHeadElement>