dinubs / jam-api

Parse web pages using CSS query selectors
http://www.jamapi.xyz
Other
1.37k stars 57 forks source link

Strip leading and trailing new lines #2

Closed omgmog closed 8 years ago

omgmog commented 8 years ago

This is a very cool project, and simple enough to make scraping old HTML sites a breeze.

One thing I've noticed is that if you select an element in the target page that contains line breaks around the content inside the tags, they are also returned, e.g:

{
"title": "\nMax Glenister - Front-end developer from Oxford, UK\n"
}