-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
whitespace nodes #39
Comments
The whitespace stripping is by design. A non stripped parsing option is in the works. |
cool beans. I've found the setting and I'm patching it manually until it becomes an option |
Now you can do: var $ = cheerio.load(html, { ignoreWhitespace: false }); to disable whitespace stripping. You can also enter any other options that node-htmlparser2 accepts. |
{ ignoreWhitespace: false } doesn't work again? |
The latest version is removing all my nodes only containing whitespace. It's introducing subtle rendering bugs where spaces are missing e.g.
is getting output as:
Is the whitespace stripping by design or is it a bug?
The text was updated successfully, but these errors were encountered: