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