prolificinteractive / node-html-to-json

Parses HTML strings into objects using flexible, composable filters.
MIT License
120 stars 13 forks source link

Any way to get the first <td> in a table row? #3

Closed sbefort closed 8 years ago

sbefort commented 8 years ago

Tried using the :first selector and that did not work.

prolificeric commented 8 years ago

The library we're using under the hood, Cheerio, unfortunately doesn't implement all of the jQuery selectors. You can use $el.find('td').eq(0)