html2plaintext-2
1.1.1 • Public • Published html2plaintext
Convert html-formatted text to plaintext
- strip tags
- reformat ordered/unordered lists
- treat whitespace like a browser
- decode html entities
Use
var h2p = require('html2plaintext')
h2p('<p>Hello,\n & <em>how are you?</em></p>')
Install
npm install html2plaintext
Test
html2plaintext npm cdn at unpkg
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 1.1.1
1
Version History
- VersionDownloads (Last 7 Days)
- 1.1.1
1
Package Sidebar
Install
Weekly Downloads