Call process right when it's needed.

This commit is contained in:
Relintai 2021-11-18 11:19:11 +01:00
parent ae3b14ad0c
commit 65ddfe2353

View File

@ -186,6 +186,7 @@ void HTMLParser::parse(const String &data) {
HTMLParserTag t; HTMLParserTag t;
t.data = data.substr(i, j - i + 1); t.data = data.substr(i, j - i + 1);
t.process();
tags.push_back(t); tags.push_back(t);
@ -209,10 +210,6 @@ void HTMLParser::parse(const String &data) {
} }
} }
} }
for (int i = 0; i < tags.size(); ++i) {
tags[i].process();
}
} }
HTMLParser::HTMLParser() { HTMLParser::HTMLParser() {