This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
whacko with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
$ npm install whacko
Difference with cheerio:
$.load(content)to load HTML documents (e.g. missing
<html>tags will be automatically emitted in this case).
$(content)to create HTML-fragments which can be later added to the loaded document.
normalizeWhitespace) are missing since whacko is intended for spec compliant HTML parsing.
encodeEntitiesadded. When false, it disables HTML entities decoding on serialization.
decodeHtmlEntitiesadded. When false, it disables HTML entities decoding on parse.
In all other aspects it is the same with the cheerio API.
If you have any questions, please feel free to create an issue here on github.
Ivan Nikulin (email@example.com)