1 2 3 4
window.doParse = (html, mimeType) => { const parser = new DOMParser(); return parser.parseFromString(html, mimeType); };