Skip to content

Instantly share code, notes, and snippets.

View Manikanta-Gandham's full-sized avatar

Manikanta-Gandham

View GitHub Profile
@Manikanta-Gandham
Manikanta-Gandham / iscompoenentCode
Last active March 13, 2018 20:57
Working fixes
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
====