mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Fix font tags showing up in playable media messages
This commit is contained in:
parent
4f80fbea97
commit
97340bed13
2 changed files with 2 additions and 2 deletions
|
@ -194,7 +194,6 @@ Rectangle {
|
|||
Text {
|
||||
Layout.fillWidth: true
|
||||
text: model.data.body
|
||||
textFormat: Text.PlainText
|
||||
elide: Text.ElideRight
|
||||
color: colors.text
|
||||
}
|
||||
|
|
|
@ -353,7 +353,8 @@ TimelineModel::data(const mtx::events::collections::TimelineEvents &event, int r
|
|||
return QVariant(emojiCount);
|
||||
}
|
||||
case Body:
|
||||
return QVariant(utils::replaceEmoji(QString::fromStdString(body(event))));
|
||||
return QVariant(
|
||||
utils::replaceEmoji(QString::fromStdString(body(event)).toHtmlEscaped()));
|
||||
case FormattedBody: {
|
||||
const static QRegularExpression replyFallback(
|
||||
"<mx-reply>.*</mx-reply>", QRegularExpression::DotMatchesEverythingOption);
|
||||
|
|
Loading…
Reference in a new issue