From a677a3443fda9f77e893d448a55e8d0482d3d4b0 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Mon, 28 May 2018 18:36:11 +0900 Subject: Move out prettyPrint() from Room to util.h So that it could be used outside of room context. --- lib/util.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/util.h') 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 -- cgit v1.2.3