taoqf / node-html-parser

A very fast HTML parser, generating a simplified DOM, with basic element query support.
MIT License
1.12k stars 112 forks source link

\r\n\t\t is returned as childNode #187

Closed VityaSchel closed 2 years ago

VityaSchel commented 2 years ago

I'm going crazy because of this issue, there is really no way to avoid it. How to remove whitespaces between actual HTML tags in childNodes?

VityaSchel commented 2 years ago

I just found root.removeWhitespace() sorry