A standalone version of the readability library used for Firefox Reader View.
To parse a document, you must create a new
Readabilityobject from a document object, and then call
parse(). Here’s an example:var article = new Readability(document).parse();
articleobject will contain the following properties:
title: article title
content: HTML string of processed article content
length: length of an article, in characters
excerpt: article description, or short excerpt from the content
byline: author metadata
dir: content direction
If you’re using Readability on the web, you will likely be able to use a
documentreference from elsewhere (e.g. fetched via XMLHttpRequest, in a same-origin
<iframe>you have access to, etc.).