This commit is contained in:
Daniel 2025-07-12 11:13:25 +08:00
parent 2ea8743fbf
commit 87501a1bdd
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -135,7 +135,7 @@ const setHTML = (options: {
}
if (DOMPurify) {
// XSS in inline-memo https://github.com/siyuan-note/siyuan/issues/15280
// XSS in inline memo elements https://github.com/siyuan-note/siyuan/issues/15280
const parser = new DOMParser();
const doc = parser.parseFromString(options.content, "text/html");
doc.querySelectorAll("[data-inline-memo-content]").forEach(item => {