Convert html-formatted text to plaintext
- strip tags
- reformat ordered/unordered lists
- treat whitespace like a browser
- decode html entities
var h2p = require('html2plaintext')
h2p('<p>Hello,\n & <em>how are <a href="https://me.com">you</a>?</em></p>')
// => "Hello, & how are you?"
npm install html2plaintext
npm install
npm test