$el.text() will extract text in style and script tag in cheerio 0.22.0, that's not my expected behavior, so I updated the dependency to 1.0.0-rc.2.
See the cheerio issue #1018 and changelog 1.0.0-rc.2 / 2017-07-02.
I think this change will benefit other people too.
Checklist
[x] Code compiles correctly
[x] Created tests which fail without the change (if possible)
[x] All tests passing
[x] Extended the README / documentation, if necessary
Description
$el.text()
will extract text in style and script tag in cheerio 0.22.0, that's not my expected behavior, so I updated the dependency to 1.0.0-rc.2. See the cheerio issue #1018 and changelog 1.0.0-rc.2 / 2017-07-02. I think this change will benefit other people too.Checklist