diff --git a/aard.cc b/aard.cc
index f4ac6be1..e41433c7 100644
--- a/aard.cc
+++ b/aard.cc
@@ -524,11 +524,10 @@ void AardDictionary::loadArticle( quint32 address,
articleText = string( QObject::tr( "Article decoding error" ).toUtf8().constData() );
// See Issue #271: A mechanism to clean-up invalid HTML cards.
- string cleaner = """"""""""""
- """"""""""""
- ""
- ""
- "";
+ // leave the invalid tags at the mercy of modern browsers.(webengine chrome)
+ // https://html.spec.whatwg.org/#an-introduction-to-error-handling-and-strange-cases-in-the-parser
+ // https://en.wikipedia.org/wiki/Tag_soup#HTML5
+ string cleaner = "";
string prefix( "
"
+ ""
""
"
";
diff --git a/bgl.cc b/bgl.cc
index 62125bb3..6f520499 100644
--- a/bgl.cc
+++ b/bgl.cc
@@ -858,10 +858,10 @@ void BglArticleRequest::run()
multimap< wstring, pair< string, string > >::const_iterator i;
- string cleaner = """"""""""""
- """"""""""""
- ""
- "";
+ // leave the invalid tags at the mercy of modern browsers.(webengine chrome)
+ // https://html.spec.whatwg.org/#an-introduction-to-error-handling-and-strange-cases-in-the-parser
+ // https://en.wikipedia.org/wiki/Tag_soup#HTML5
+ string cleaner = "";
for( i = mainArticles.begin(); i != mainArticles.end(); ++i )
{
if (dict.isFromLanguageRTL() ) // RTL support
diff --git a/mdx.cc b/mdx.cc
index 09464667..5419323f 100644
--- a/mdx.cc
+++ b/mdx.cc
@@ -707,11 +707,10 @@ void MdxArticleRequest::run()
}
// See Issue #271: A mechanism to clean-up invalid HTML cards.
- string cleaner = """"""""""""
- """"""""""""
- ""
- ""
- "";
+ // leave the invalid tags at the mercy of modern browsers.(webengine chrome)
+ // https://html.spec.whatwg.org/#an-introduction-to-error-handling-and-strange-cases-in-the-parser
+ // https://en.wikipedia.org/wiki/Tag_soup#HTML5
+ string cleaner = "";
articleText += "
" + articleBody + cleaner + "
\n";
}
diff --git a/slob.cc b/slob.cc
index a0e9c410..8420f642 100644
--- a/slob.cc
+++ b/slob.cc
@@ -799,11 +799,10 @@ void SlobDictionary::loadArticle( quint32 address,
articleText = string( QObject::tr( "Article decoding error" ).toUtf8().constData() );
// See Issue #271: A mechanism to clean-up invalid HTML cards.
- string cleaner = """"""""""""
- """"""""""""
- ""
- ""
- "";
+ // leave the invalid tags at the mercy of modern browsers.(webengine chrome)
+ // https://html.spec.whatwg.org/#an-introduction-to-error-handling-and-strange-cases-in-the-parser
+ // https://en.wikipedia.org/wiki/Tag_soup#HTML5
+ string cleaner = "";
string prefix( "
>::const_iterator i;
- string cleaner = """"""""""""
- """"""""""""
- ""
- "";
-
+ // leave the invalid tags at the mercy of modern browsers.(webengine chrome)
+ // https://html.spec.whatwg.org/#an-introduction-to-error-handling-and-strange-cases-in-the-parser
+ // https://en.wikipedia.org/wiki/Tag_soup#HTML5
+ string cleaner = "";
for( i = mainArticles.begin(); i != mainArticles.end(); ++i )
{
result += dict.isFromLanguageRTL() ? "
" : "";
diff --git a/website.cc b/website.cc
index a2bda352..93355bf5 100644
--- a/website.cc
+++ b/website.cc
@@ -281,11 +281,9 @@ void WebSiteArticleRequest::requestFinished( QNetworkReply * r )
}
// See Issue #271: A mechanism to clean-up invalid HTML cards.
- articleString += """"""""""""
- """"""""""""
- ""
- ""
- "";
+ // leave the invalid tags at the mercy of modern browsers.(webengine chrome)
+ // https://html.spec.whatwg.org/#an-introduction-to-error-handling-and-strange-cases-in-the-parser
+ // https://en.wikipedia.org/wiki/Tag_soup#HTML5
QByteArray articleBody = articleString.toUtf8();
diff --git a/xdxf.cc b/xdxf.cc
index e32caef2..6210ba15 100644
--- a/xdxf.cc
+++ b/xdxf.cc
@@ -584,10 +584,10 @@ void XdxfArticleRequest::run()
multimap< wstring, pair< string, string > >::const_iterator i;
- string cleaner = """"""""""""
- """"""""""""
- ""
- "";
+ // leave the invalid tags at the mercy of modern browsers.(webengine chrome)
+ // https://html.spec.whatwg.org/#an-introduction-to-error-handling-and-strange-cases-in-the-parser
+ // https://en.wikipedia.org/wiki/Tag_soup#HTML5
+ string cleaner = "";
for( i = mainArticles.begin(); i != mainArticles.end(); ++i )
{
diff --git a/zim.cc b/zim.cc
index a75097d5..b1c5d233 100644
--- a/zim.cc
+++ b/zim.cc
@@ -1286,11 +1286,10 @@ void ZimArticleRequest::run()
string result;
// See Issue #271: A mechanism to clean-up invalid HTML cards.
- string cleaner = """"""""""""
- """"""""""""
- ""
- ""
- "";
+ // leave the invalid tags at the mercy of modern browsers.(webengine chrome)
+ // https://html.spec.whatwg.org/#an-introduction-to-error-handling-and-strange-cases-in-the-parser
+ // https://en.wikipedia.org/wiki/Tag_soup#HTML5
+ string cleaner = "";
multimap< wstring, pair< string, string > >::const_iterator i;