jonkemp / inline-css

Inline css into an html file.
MIT License
429 stars 84 forks source link

Cheerio 1.x wraps code with html tags #117

Open dariusj18 opened 2 years ago

dariusj18 commented 2 years ago

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 commented 1 year ago

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