Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion js/bioep.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,12 @@ window.bioEp = {
else {
this.popupEl = document.createElement("div");
this.popupEl.id = "bio_ep";
this.popupEl.innerHTML = this.html;
if (window.DOMPurify) {
this.popupEl.innerHTML = window.DOMPurify.sanitize(this.html);
} else {
console.error('bioep: DOMPurify not loaded - HTML content disabled for security');
this.popupEl.innerHTML = 'Popup content disabled - load DOMPurify for HTML support';
}
document.body.appendChild(this.popupEl);
}

Expand Down Expand Up @@ -305,3 +310,4 @@ window.bioEp = {
});
}
}