diff --git a/src/models/messageeventmodel.cpp b/src/models/messageeventmodel.cpp index 6d8ace137..9efc0540a 100644 --- a/src/models/messageeventmodel.cpp +++ b/src/models/messageeventmodel.cpp @@ -436,7 +436,7 @@ QVariant MessageEventModel::data(const QModelIndex &idx, int role) const if (evt.isRedacted()) { auto reason = evt.redactedBecause()->reason(); return (reason.isEmpty()) ? i18n("[This message was deleted]") - : i18n("[This message was deleted: %1]", evt.redactedBecause()->reason()); + : i18n("[This message was deleted: %1]", evt.redactedBecause()->reason().toHtmlEscaped()); } return EventHandler::richBody(m_currentRoom, &evt); }