Return non-text elements if no text content found after parsing in readability

This commit is contained in:
Hongbo Wu 2022-05-05 19:26:39 +08:00
parent 35e3e347d6
commit 24373018af

View file

@ -1579,7 +1579,7 @@ Readability.prototype = {
});
// But first check if we actually have something
if (!this._attempts[0].textLength) {
if (!this._attempts[0].textLength && !this._attempts[0].articleContent) {
return null;
}