Vanessa 2025-09-22 16:43:29 +08:00
parent 7735a018f3
commit 980e1bd9d5
3 changed files with 14 additions and 3 deletions

View file

@ -34,9 +34,8 @@ export const genRenderFrame = (renderElement: Element) => {
};
export const processClonePHElement = (item: Element) => {
if (item.getAttribute("data-type") === "NodeHTMLBlock") {
const phElement = item.querySelector("protyle-html");
item.querySelectorAll("protyle-html").forEach((phElement) => {
phElement.setAttribute("data-content", Lute.UnEscapeHTMLStr(phElement.getAttribute("data-content")));
}
});
return item;
};