diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-01-14 17:47:30 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-01-14 17:47:30 +0100 |
commit | 3f02b0bf56f887fb4cca631bde644d6106335169 (patch) | |
tree | 1f6120fbe469d41ea95e1e21050f9e6d074cdec2 /src/Utils.h | |
parent | Fix replies in encrypted rooms (diff) | |
download | nheko-3f02b0bf56f887fb4cca631bde644d6106335169.tar.xz |
Escape blacklisted html tags
Diffstat (limited to 'src/Utils.h')
-rw-r--r-- | src/Utils.h | 4 |
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); |