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.
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
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.