Skip to content
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

Cheerio 1.x wraps code with html tags #117

Open
dariusj18 opened this issue Aug 3, 2022 · 1 comment · May be fixed by #120
Open

Cheerio 1.x wraps code with html tags #117

dariusj18 opened this issue Aug 3, 2022 · 1 comment · May be fixed by #120

Comments

@dariusj18
Copy link

Previous to the cheerio upgrade the my code going into the inlineCss did not have html nor body tags, and the return did not either. After the update cheerio seems to automatically wrap the html with those tags.

@edokan
Copy link

edokan commented Nov 18, 2022

It seems cheerio.load needs a third argument (https://github.com/cheeriojs/cheerio#loading) to prevent the automatic adding of HTML elements, but there is no way to provide this option in the library

edokan added a commit to edokan/inline-css that referenced this issue Nov 18, 2022
@edokan edokan linked a pull request Nov 18, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants