Browse Source

Less strict on boolean types

pull/1045/head
Artur Arseniev 8 years ago
parent
commit
4fdc7dfd97
  1. 2
      src/parser/model/ParserHtml.js

2
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;

Loading…
Cancel
Save