mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-02 02:40:15 +01:00
This commit is contained in:
parent
b1a04d67d9
commit
8befb8d691
3 changed files with 15 additions and 14 deletions
|
|
@ -1053,7 +1053,7 @@ export class Toolbar {
|
|||
}
|
||||
inlineMemoElements.forEach((item) => {
|
||||
if (item.nodeType !== 3) {
|
||||
item.setAttribute("data-inline-memo-content", Lute.EscapeHTMLStr(textElement.value));
|
||||
item.setAttribute("data-inline-memo-content", window.DOMPurify.sanitize(textElement.value));
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
|
@ -1131,7 +1131,7 @@ export class Toolbar {
|
|||
}
|
||||
} else if (item.nodeType !== 3) {
|
||||
// 行级备注自动移除换行 https://ld246.com/article/1664205917326
|
||||
item.setAttribute("data-inline-memo-content", Lute.EscapeHTMLStr(textElement.value));
|
||||
item.setAttribute("data-inline-memo-content", window.DOMPurify.sanitize(textElement.value));
|
||||
}
|
||||
});
|
||||
} else if (types.includes("inline-math")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue