From 722665aab95ff7f9b0796b2dcd7722527c46635d Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 11 May 2024 17:08:56 +0800 Subject: [PATCH] :bug: https://github.com/siyuan-note/siyuan/issues/11321 --- app/stage/protyle/js/protyle-html.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/stage/protyle/js/protyle-html.js b/app/stage/protyle/js/protyle-html.js index 0326f92cc..0469cc12b 100644 --- a/app/stage/protyle/js/protyle-html.js +++ b/app/stage/protyle/js/protyle-html.js @@ -8,9 +8,9 @@ class ProtyleHtml extends HTMLElement { const shadowRoot = this.attachShadow({mode: 'open'}) this.display = this.shadowRoot // https://github.com/siyuan-note/siyuan/issues/11321 - this.setAttribute('data-content', Lute.EscapeHTMLStr(this.getAttribute('data-content'))) - const dataContent = this.getAttribute('data-content') - this.display.innerHTML = dataContent + const content = Lute.EscapeHTMLStr(this.getAttribute('data-content')) + this.setAttribute('data-content', content) + this.display.innerHTML = content } static get observedAttributes() {