GetContentProvider(IExecutionContext, IMarkupFormattable) Method
Gets a content provider for HTML content, sets the media type to Html, and updates the internal HTML document cache used by ParseHtmlAsync(IDocument, bool) if the markup parameter is a IHtmlDocument.

Syntax

public static IContentProvider GetContentProvider(this IExecutionContext executionContext, IMarkupFormattable markup)

Parameters

Name Type Description
executionContext IExecutionContext
markup IMarkupFormattable

Return Value

Type Description
IContentProvider