ag-charts-community
Version:
Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue
13 lines • 360 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
let element = null;
function sanitizeHtml(text) {
element = element || document.createElement('div');
if (!text) {
return '';
}
element.innerText = text;
return element.innerHTML;
}
exports.sanitizeHtml = sanitizeHtml;
//# sourceMappingURL=sanitize.js.map