From 4fdc7dfd97926d46f6400cadce6a2fddc822656d Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Thu, 12 Apr 2018 22:53:41 +0200 Subject: [PATCH] Less strict on boolean types --- src/parser/model/ParserHtml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/model/ParserHtml.js b/src/parser/model/ParserHtml.js index c07ba3b4b..0f56df1f5 100644 --- a/src/parser/model/ParserHtml.js +++ b/src/parser/model/ParserHtml.js @@ -153,7 +153,7 @@ module.exports = config => { } // Throw away empty nodes (keep spaces) - if (config.removeEmptyTextNodes !== false) { + if (config.removeEmptyTextNodes) { const content = node.nodeValue; if (content != ' ' && !content.trim()) { continue;