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
text: {
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) {
heading = heading.arg(i18n("Editing message:")) + "<br/>"
} else {

View File

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