From 178a7e8d77d780f44a4b6b7d3868aeb2f74bd619 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 11 May 2024 16:06:07 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/11321 --- app/src/protyle/toolbar/index.ts | 2 +- app/stage/protyle/js/protyle-html.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts index f78dcb36f..ff88bcc84 100644 --- a/app/src/protyle/toolbar/index.ts +++ b/app/src/protyle/toolbar/index.ts @@ -995,7 +995,7 @@ export class Toolbar { /// #endif const textElement = this.subElement.querySelector(".b3-text-field") as HTMLTextAreaElement; if (types.includes("NodeHTMLBlock")) { - textElement.value = Lute.UnEscapeHTMLStr(renderElement.querySelector("protyle-html").getAttribute("data-content") || ""); + textElement.value = renderElement.querySelector("protyle-html").getAttribute("data-content") || ""; } else if (isInlineMemo) { textElement.value = Lute.UnEscapeHTMLStr(renderElement.getAttribute("data-inline-memo-content") || ""); } else { diff --git a/app/stage/protyle/js/protyle-html.js b/app/stage/protyle/js/protyle-html.js index 5982df864..0956319e8 100644 --- a/app/stage/protyle/js/protyle-html.js +++ b/app/stage/protyle/js/protyle-html.js @@ -7,7 +7,7 @@ class ProtyleHtml extends HTMLElement { super() const shadowRoot = this.attachShadow({mode: 'open'}) this.display = this.shadowRoot - const dataContent = Lute.UnEscapeHTMLStr(this.getAttribute('data-content')) + const dataContent = this.getAttribute('data-content') this.display.innerHTML = dataContent }