Skip to content

Commit

Permalink
fix: Remove innerHTML usage
Browse files Browse the repository at this point in the history
  • Loading branch information
tommoor committed Jan 10, 2022
1 parent d3cbf25 commit 8ec70b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/Document.ts
Expand Up @@ -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";

Expand Down

0 comments on commit 8ec70b7

Please sign in to comment.