Don't display HTML code as plain text.

This commit is contained in:
tastytea 2019-11-01 06:38:53 +01:00
parent b7256b3b9c
commit 63a3303376
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ function write_comments(root, data)
}
const content_p = document.createElement("p");
content_p.setAttribute("class", "mastodon-api-comment-content");
content_p.appendChild(document.createTextNode(content));
content_p.innerHTML = content;
p.appendChild(content_p);
root.appendChild(p);
}