This commit is contained in:
parent
e04c8ff0b9
commit
722665aab9
1 changed files with 3 additions and 3 deletions
6
app/stage/protyle/js/protyle-html.js
vendored
6
app/stage/protyle/js/protyle-html.js
vendored
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue