Skip to content

Commit

Permalink
Hopefully fix building with Xcode
Browse files Browse the repository at this point in the history
  • Loading branch information
KitsuneRal committed Dec 30, 2024
1 parent 8545ad2 commit a30487b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions client/htmlfilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,12 @@ class Processor {
void filterText(QString& text);
};

static const QStringView permittedTags[] = {
u"font", u"del", u"h1", u"h2", u"h3", u"h4", u"h5", u"h6",
u"blockquote", u"p", u"a", u"ul", u"ol", u"sup", u"sub", u"li",
u"b", u"i", u"u", u"strong", u"em", u"s", u"code", u"hr",
u"br", u"div", u"table", u"thead", u"tbody", u"tr", u"th", u"td",
u"caption", u"pre", u"span", u"img", u"mx-reply"
};
static const auto permittedTags = std::to_array<QStringView>(
{ u"font", u"del", u"h1", u"h2", u"h3", u"h4", u"h5", u"h6",
u"blockquote", u"p", u"a", u"ul", u"ol", u"sup", u"sub", u"li",
u"b", u"i", u"u", u"strong", u"em", u"s", u"code", u"hr",
u"br", u"div", u"table", u"thead", u"tbody", u"tr", u"th", u"td",
u"caption", u"pre", u"span", u"img", u"mx-reply" });

struct PassList {
QStringView tag;
Expand Down

0 comments on commit a30487b

Please sign in to comment.