vendredi 28 novembre 2014

Pure Javascript Article Content Fetching


I am looking for a javascript snippet library that does the same "magic" like



... in short: clean up a HTML page and return a nice article without any clutter. Instapaper and Evernote do this, too.


My problem is that I want only the raw core of one of these libraries and use it in the browser (or anywhere else). I already have a string containing the HTML of a website, and I have jQuery available in the client. So ideally I'd love to just call a function, give it the HTML string, and get back the cleaned up article. No server stuff required, nothing.


Can anyone help me to find a link to a *.js solution, maybe to a browserify'ed version of one of these algorithms or something like this?





Aucun commentaire:

Enregistrer un commentaire