Escape more html

This commit is contained in:
Tobias Fella
2021-10-10 12:26:35 +02:00
parent 76675719cf
commit 2fc4c6456f
2 changed files with 2 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ Loader {
elide: Text.ElideRight elide: Text.ElideRight
text: { text: {
let heading = "<b>%1</b>" let heading = "<b>%1</b>"
let userName = user ? "<font color=\""+ user.color +"\">" + user.displayName + "</font>" : "" let userName = user ? "<font color=\""+ user.color +"\">" + currentRoom.htmlSafeMemberName(user.id) + "</font>" : ""
if (isEdit) { if (isEdit) {
heading = heading.arg(i18n("Editing message:")) + "<br/>" heading = heading.arg(i18n("Editing message:")) + "<br/>"
} else { } else {

View File

@@ -130,7 +130,7 @@ Loader {
Kirigami.Heading { Kirigami.Heading {
level: 3 level: 3
Layout.fillWidth: true Layout.fillWidth: true
text: author.displayName text: currentRoom.htmlSafeMemberName(author.id)
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
} }
QQC2.Label { QQC2.Label {