diff --git a/dataengines/notifications/notificationsanitizer.h b/dataengines/notifications/notificationsanitizer.h --- a/dataengines/notifications/notificationsanitizer.h +++ b/dataengines/notifications/notificationsanitizer.h @@ -24,7 +24,9 @@ /* * This turns generic random text of either plain text of any degree of faux-HTML into HTML allowed * in the notification spec namely: - * a, img, b, i, u and br + * a, img, b, i, u, and br + * In addition to the notification spec the following tags are allowed: + * table, tr, and td * All other tags and attributes are stripped * Whitespace is stripped and converted to
* Double newlines are compressed diff --git a/dataengines/notifications/notificationsanitizer.cpp b/dataengines/notifications/notificationsanitizer.cpp --- a/dataengines/notifications/notificationsanitizer.cpp +++ b/dataengines/notifications/notificationsanitizer.cpp @@ -46,7 +46,7 @@ QString result; QXmlStreamWriter out(&result); - const QVector allowedTags = {"b", "i", "u", "img", "a", "html", "br"}; + const QVector allowedTags = {"b", "i", "u", "img", "a", "html", "br", "table", "tr", "td"}; out.writeStartDocument(); while (!r.atEnd()) {