Mozilla's Readability.js
A standalone version of the readability library used for Firefox Reader View.
[…]
To parse a document, you must create a new
Readability
object from a document object, and then callparse()
. Here’s an example:var article = new Readability(document).parse();This
article
object will contain the following properties:
title
: article titlecontent
: HTML string of processed article contentlength
: length of an article, in charactersexcerpt
: article description, or short excerpt from the contentbyline
: author metadatadir
: content directionIf you’re using Readability on the web, you will likely be able to use a
document
reference from elsewhere (e.g. fetched via XMLHttpRequest, in a same-origin<iframe>
you have access to, etc.).