summary refs log tree commit diff
path: root/src/Utils.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-01-14 17:47:30 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-01-14 17:47:30 +0100
commit3f02b0bf56f887fb4cca631bde644d6106335169 (patch)
tree1f6120fbe469d41ea95e1e21050f9e6d074cdec2 /src/Utils.h
parentFix replies in encrypted rooms (diff)
downloadnheko-3f02b0bf56f887fb4cca631bde644d6106335169.tar.xz
Escape blacklisted html tags
Diffstat (limited to 'src/Utils.h')
-rw-r--r--src/Utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Utils.h b/src/Utils.h
index 6b809d63..119d660a 100644
--- a/src/Utils.h
+++ b/src/Utils.h
@@ -286,6 +286,10 @@ linkifyMessage(const QString &body);
 QString
 markdownToHtml(const QString &text);
 
+//! Escape every html tag, that was not whitelisted
+QString
+escapeBlacklistedHtml(const QString &data);
+
 //! Generate a Rich Reply quote message
 QString
 getFormattedQuoteBody(const RelatedInfo &related, const QString &html);