From a0a76e352bc1a05f6f4b475c6dab4ba026b4b9b0 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Wed, 12 Sep 2018 13:40:42 +0300 Subject: [PATCH] Enable html attributes --- src/Utils.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Utils.cpp b/src/Utils.cpp index 6ac675d4..84978bae 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -306,7 +306,14 @@ utils::linkifyMessage(const QString &body) if (xml.name() == "html") break; - textString += "<" + xml.name() + ">"; + textString += "<" + xml.name(); + + const auto attrs = xml.attributes(); + for (const auto &e : attrs) + textString += QString(" %1=\"%2\"").arg(e.name()).arg(e.value()); + + textString += ">"; + break; } case QXmlStreamReader::EndElement: {