Readibility
Extract the Readable Content from an HTML Document
README
Readability.js
A standalone version of the readability library used for Firefox Reader View.
Installation
Readability is available on npm:
- ``` sh
- npm install @mozilla/readability
- ```
You can then require() it, or for web-based projects, load the Readability.js script from your webpage.
Basic usage
To parse a document, you must create a new Readability object from a DOM document object, and then call the [parse()](#parse) method. Here's an example:
- ``` js
- var article = new Readability(document).parse();
- ```