This commit is contained in:
Vanessa 2023-01-27 20:03:40 +08:00
parent c3f651b6c9
commit dd86b42b7d

View File

@ -431,7 +431,7 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, focus: b
const attrsResult: IObject = {}; const attrsResult: IObject = {};
Object.keys(data.new).forEach(key => { Object.keys(data.new).forEach(key => {
attrsResult[key] = data.new[key]; attrsResult[key] = data.new[key];
const escapeHTML = data.new[key]; const escapeHTML = Lute.EscapeHTMLStr(data.new[key]);
if (key === "bookmark") { if (key === "bookmark") {
nodeAttrHTML += `<div class="protyle-attr--bookmark">${escapeHTML}</div>`; nodeAttrHTML += `<div class="protyle-attr--bookmark">${escapeHTML}</div>`;
} else if (key === "name") { } else if (key === "name") {