let parser = new DOMParser(); let html = `...<div id='stage'>12345</div>...`; let doc = parser.parseFromString(html, "text/html"); alert(doc.getElementById('stage').innerHTML);