fix(im): escape html in sent messages too (#1218)

fixes #1215
This commit is contained in:
celestora 2025-01-29 23:13:20 +02:00 committed by GitHub
parent 7fe0c6a122
commit 4166481a75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -232,7 +232,7 @@
sendMessage(content) { sendMessage(content) {
console.debug("New outcoming message. Pushing preview to local stack."); console.debug("New outcoming message. Pushing preview to local stack.");
let tempId = this.newMessage(content); let tempId = this.newMessage(escapeHtml(content));
let msgData = new FormData(); let msgData = new FormData();
msgData.set("content", content); msgData.set("content", content);