This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If we are passing a blob String as argument | |
======================================== | |
const isDynDocDocumented = (element) => { | |
const parser = new DOMParser(); | |
const htmlDoc = parser.parseFromString(element, "text/xml"); | |
const textContent = htmlDoc.documentElement.textContent; // IMP | |
==== |