The fast, flexible, and elegant library for parsing and manipulating HTML and XML.
<script>
and <style>
tags (Closes Issue: #8)Rewrote all unit tests as cheerio transitioned from vows -> mocha
Internally, renderer.render -> render(...), parser.parse -> parse(...)
Append, prepend, html, before, after all work with only text (no tags)
Bugfix: Attributes can now be removed from script and style tags
Added yield as a single tag
Cheerio now compatible with node >=0.4.7
Fixed $(...).text(...) to work with "root" element
Now relying on cheerio-soupselect instead of node-soupselect
Removed all lingering htmlparser dependencies
parser now returns parent "root" element. Root now never needs to be updated when there is multiple roots. This fixes ongoing issues with before(...), after(...) and other manipulation functions
Added jQuery's $(...).replaceWith(...)
make test
to work from npm installation$(...).html()
now returns inner HTML, which is in line with the jQuery spec$.html()
returns the full HTML string. $.html([cheerioObject])
will return the outer(selected element's tag) and inner HTML of that objectappend('<ul><li><li></ul>')
) from getting parent
, next
, prev
attributes..load
.Many thanks to the contributors that made this release happen: @ironchefpython and @siddMahen