aboutsummaryrefslogtreecommitdiff
path: root/lib/util.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-05-28 18:36:11 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-05-28 18:44:32 +0900
commita677a3443fda9f77e893d448a55e8d0482d3d4b0 (patch)
tree8b98d946c0a0416c4030630ae26fde0dd8834c1d /lib/util.h
parentbaca58ea5c271333038ad13466eeb7acc50ecdde (diff)
downloadlibquotient-a677a3443fda9f77e893d448a55e8d0482d3d4b0.tar.gz
libquotient-a677a3443fda9f77e893d448a55e8d0482d3d4b0.zip
Move out prettyPrint() from Room to util.h
So that it could be used outside of room context.
Diffstat (limited to 'lib/util.h')
-rw-r--r--lib/util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/util.h b/lib/util.h
index f65b05a3..28b85a82 100644
--- a/lib/util.h
+++ b/lib/util.h
@@ -115,5 +115,10 @@ namespace QMatrixClient
private:
QObject* subscriber;
};
+
+ /** Pretty-prints plain text into HTML
+ * This includes HTML escaping of <,>,",& and URLs linkification.
+ */
+ QString prettyPrint(const QString& plainText);
} // namespace QMatrixClient