DOMParser

open class DOMParser(source)

The DOMParser interface provides the ability to parse XML or HTML source code from a string into a DOM Document.

MDN Reference

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

The parseFromString() method of the DOMParser interface parses a string containing either HTML or XML, returning an HTMLDocument or an XMLDocument.