DomParser Class

https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#domparser

public sealed class DomParser

Constructors

NameDescription
DomParser()Creates a parser associated with the current global document.

DomParser()

DomParser.cs

Creates a parser associated with the current global document.

public DomParser()

Methods

NameDescription
ParseFromString(TrustedHtml, DomParserSupportedType)https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring
ParseFromString(string, DomParserSupportedType)https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring

ParseFromString overloads

ParseFromString(TrustedHtml, DomParserSupportedType)

DomParser.cs

https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring

public Document ParseFromString(TrustedHtml markup, DomParserSupportedType type)

ParseFromString(string, DomParserSupportedType)

DomParser.cs

https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring

public Document ParseFromString(string markup, DomParserSupportedType type)
Parameters
markup string
type DomParserSupportedType
Returns

Document

Exceptions
TypeErrorException
Trusted Types are enforced and the default policy did not convert the value.
See also