OLD | NEW |
(Empty) | |
| 1 #Whacko |
| 2 [](https://travis-
ci.org/inikulin/whacko) |
| 3 |
| 4 Whacko is a fork of the [cheerio](https://github.com/MatthewMueller/cheerio) tha
t uses [parse5](https://github.com/inikulin/parse5) as an underlying platform. |
| 5 |
| 6 ##Install |
| 7 ``` |
| 8 $ npm install whacko |
| 9 ``` |
| 10 |
| 11 ##API |
| 12 Difference with cheerio: |
| 13 * Use `$.load(content)` to load HTML documents (e.g. missing `<html>` tags will
be automatically emitted in this case). |
| 14 * Use `$(content)` to create HTML-fragments which can be later added to the load
ed document. |
| 15 * Parser options (e.g. `xmlMode` and `normalizeWhitespace`) are missing since wh
acko is intended for spec compliant HTML parsing. |
| 16 |
| 17 In all other aspects it is the same with the [cheerio API](https://github.com/Ma
tthewMueller/cheerio#api). |
| 18 |
| 19 ##Questions or suggestions? |
| 20 If you have any questions, please feel free to create an issue [here on github](
https://github.com/inikulin/whacko/issues). |
| 21 |
| 22 |
| 23 ##Author |
| 24 [Ivan Nikulin](https://github.com/inikulin) (ifaaan@gmail.com) |
OLD | NEW |