https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString
DOMParser: parseFromString() method - Web APIs | MDN
The parseFromString() method of the DOMParser interface parses an input containing either HTML or XML, returning a Document with the type given in the...
web apisdomparsermethodmdn