MatthewMueller/cheerio — pull request #234 by jlep (2013-07-05 13:56:51+00:00)
Title: Implement .contents()

Currently there seems to be no way of accessing text nodes with the public API in cheerio. The common way of doing this in jQuery is by using .contents() (http://api.jquery.com/contents/) which cheerio doesn't have.

I implemented .contents() in cheerio and added test cases for it.