aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-03-17 19:29:29 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-03-17 19:29:29 +0900
commitbc27d9cdcc5cb71aec12f2e3f15b5762a93b721f (patch)
tree49f1b4c1e1e607c51ae710a65242d42dc747b24f
parent4a7e1a8c8a1940827ba9aea0bd830ef9dbf912ed (diff)
downloadlibquotient-bc27d9cdcc5cb71aec12f2e3f15b5762a93b721f.tar.gz
libquotient-bc27d9cdcc5cb71aec12f2e3f15b5762a93b721f.zip
prettyPrint: do not apply sanitized()
Only display names should be sanitized; messages are only HTML-escaped.
-rw-r--r--lib/util.cpp2
1 files changed, 1 insertions, 1 deletions
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("<span style='white-space:pre-wrap'>") +
- sanitized(plainText).toHtmlEscaped() + QStringLiteral("</span>");
+ plainText.toHtmlEscaped() + QStringLiteral("</span>");
pt.replace('\n', QStringLiteral("<br/>"));
linkifyUrls(pt);