var xmlString = "<div id='foo'><a href='#'>Link</a><span></span></div>"; var doc = new DOMParser().parseFromString(xmlString, "text/xml"); console.log(doc.firstChild.innerHTML); // => <a href="#">Link...
console.log(doc.firstChild.firstChild.innerHTML); // => Linkหหห
- Tags:
- กฟหหกฟหก