html-email-to-text
Convert html emails to (formatted) plain text
Install
``
$ npm install --save html-email-to-text
`
Usage
`
js
const htmlToText = require('html-email-to-text');
htmlToText('Html as a string');
//=> Formatted plain text as a string
`
Examples
$3
`
html
Subject line: Title will be uppercase
Hello there |
email coder |
this is an example of |
html-email-to-text formatting |
|
This email can be formatted in plain text too.
It works with a link or two.
|
If you wrap links around images it will use the alt text together with the link.
|
|