diff --git a/app/src/block/util.ts b/app/src/block/util.ts index 272c2422d..dac72c1dd 100644 --- a/app/src/block/util.ts +++ b/app/src/block/util.ts @@ -35,6 +35,10 @@ export const cancelSB = (protyle: IProtyle, nodeElement: Element) => { id, }); nodeElement.lastElementChild.remove(); + // 超级块中的 html 块需要反转义再赋值 https://github.com/siyuan-note/siyuan/issues/13155 + nodeElement.querySelectorAll("protyle-html").forEach(item => { + item.setAttribute("data-content" , item.getAttribute("data-content").replace(/</g, "<").replace(/>/g, ">")) + }) nodeElement.outerHTML = nodeElement.innerHTML; return; }