Sanitize HTML displayed as message content
This commit is contained in:
@@ -38,7 +38,9 @@ Row {
|
||||
//"</font>" +
|
||||
// (isOwn ? " " + content : "")
|
||||
|
||||
text: (dict.formatted_body || dict.body) +
|
||||
text: (dict.formatted_body ?
|
||||
Backend.htmlFilter.sanitize(dict.formatted_body) :
|
||||
dict.body) +
|
||||
" <font size=" + smallSize + "px color=gray>" +
|
||||
Qt.formatDateTime(date_time, "hh:mm:ss") +
|
||||
"</font>"
|
||||
|
Reference in New Issue
Block a user