From 24373018af3abef3e2da58e458921ecd2b1d6ae9 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Thu, 5 May 2022 19:26:39 +0800 Subject: [PATCH] Return non-text elements if no text content found after parsing in readability --- packages/readabilityjs/Readability.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/readabilityjs/Readability.js b/packages/readabilityjs/Readability.js index 683f500d4..714f44fa4 100644 --- a/packages/readabilityjs/Readability.js +++ b/packages/readabilityjs/Readability.js @@ -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; }