Simple example:
$ = whacko.load('<h1>This should be alone</h1>');
console.log($.html());
I expect and want the output from that log statement to be:
<h1>This should be alone</h1>
Instead, the output is:
<html><head></head><body><h1>This should be alone</h1></body></html>
Is there a config option for this, or a method I should use instead of html()? I reviewed Cheerio's API and the options for the parser, and I couldn't find anything for this.
Simple example:
I expect and want the output from that log statement to be:
Instead, the output is:
Is there a config option for this, or a method I should use instead of
html()? I reviewed Cheerio's API and the options for the parser, and I couldn't find anything for this.