Class
AngleSharpHtmlParser
OfficeIMO.Html.Providers
Inert HTML parsing backed by AngleSharp, returning owned OfficeIMO document snapshots.
Inheritance
- object
- AngleSharpHtmlParser
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
- Property AngleSharpHtmlParser.Instance
Constructors
public AngleSharpHtmlParser() #Methods
public HtmlDocument ParseDocument(string source, HtmlParseOptions options, CancellationToken cancellationToken = default) #Parses a complete document and returns an immutable snapshot.
Parameters
- source string
- options OfficeIMO.Html.Dom.HtmlParseOptions
- cancellationToken System.Threading.CancellationToken = default
Returns
HtmlDocumentpublic HtmlDocumentFragment ParseFragment(string source, HtmlElement contextElement, HtmlParseOptions options, CancellationToken cancellationToken = default) #Parses source with the supplied element as the HTML fragment-parsing context. The returned fragment belongs to an independent owned document and can be inserted with HtmlDocument.ImportNode.
Parameters
- source string
- contextElement OfficeIMO.Html.Dom.HtmlElement
- options OfficeIMO.Html.Dom.HtmlParseOptions
- cancellationToken System.Threading.CancellationToken = default
Returns
HtmlDocumentFragment