Converts a block of HTML to plain text, correctly preserving newlines in tricky situations.
npm install html-to-plaintext
import getPlainText from 'html-to-plaintext
To run the tests:
npm install npm test