diff --git a/app/models/Document.ts b/app/models/Document.ts index cd71736b750c..c57836723dc9 100644 --- a/app/models/Document.ts +++ b/app/models/Document.ts @@ -109,7 +109,7 @@ export default class Document extends BaseModel { @computed get dir(): "rtl" | "ltr" { const element = document.createElement("p"); - element.innerHTML = this.title; + element.innerText = this.title; element.style.visibility = "hidden"; element.dir = "auto";