Package Exports
- whacko
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (whacko) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Whacko
Whacko is a fork of cheerio that uses parse5 as an underlying platform.
Install
$ npm install whacko
API
Difference with cheerio:
- Use
$.load(content)
to load HTML documents (e.g. missing<html>
tags will be automatically emitted in this case). - Use
$(content)
to create HTML-fragments which can be later added to the loaded document. - Parser options (e.g.
xmlMode
andnormalizeWhitespace
) are missing since whacko is intended for spec compliant HTML parsing. - New parser option
encodeEntities
added. When false, it disables HTML entities decoding on serialization. - New parser option
decodeHtmlEntities
added. When false, it disables HTML entities decoding on parse.
In all other aspects it is the same with the cheerio API.
Questions or suggestions?
If you have any questions, please feel free to create an issue here on github.