From bc27d9cdcc5cb71aec12f2e3f15b5762a93b721f Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sun, 17 Mar 2019 19:29:29 +0900 Subject: prettyPrint: do not apply sanitized() Only display names should be sanitized; messages are only HTML-escaped. --- lib/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.cpp b/lib/util.cpp index 2744d45f..59e373c2 100644 --- a/lib/util.cpp +++ b/lib/util.cpp @@ -74,7 +74,7 @@ QString QMatrixClient::sanitized(const QString& plainText) QString QMatrixClient::prettyPrint(const QString& plainText) { auto pt = QStringLiteral("") + - sanitized(plainText).toHtmlEscaped() + QStringLiteral(""); + plainText.toHtmlEscaped() + QStringLiteral(""); pt.replace('\n', QStringLiteral("
")); linkifyUrls(pt); -- cgit v1.2.3