Skip to content

Commit

Permalink
Mark articles that begin with <details> as HTML (#1294)
Browse files Browse the repository at this point in the history
This Brazilian news website called Tecnoblog [1] will often begin their
articles with the <details> tag, providing a short summary for them.

[1] https://tecnoblog.net/
  • Loading branch information
guihkx authored Feb 7, 2024
1 parent c152df7 commit 4cd363e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librssguard/miscellaneous/textfactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ bool TextFactory::couldBeHtml(const QString& string) {
const QString sstring = string.simplified();

return sstring.startsWith(QL1S("<!")) || sstring.startsWith(QL1S("<html")) || sstring.startsWith(QL1S("<figure")) ||
sstring.startsWith(QL1S("<article")) || Qt::mightBeRichText(sstring);
sstring.startsWith(QL1S("<article")) || sstring.startsWith(QL1S("<details")) || Qt::mightBeRichText(sstring);
}

QDateTime TextFactory::parseDateTime(const QString& date_time) {
Expand Down

0 comments on commit 4cd363e

Please sign in to comment.