A sanitize-html wrapper optimised for sanitising HTML for email clients
NPM
npm i --save sanitize-mail
Yarn
yarn add sanitize-mail
Node
const sanitizeMail = require('sanitize-mail');
let html = '<h1>Hello world</h1><canvas></canvas>';
let clean = sanitizeMail(html);
console.log(clean); // Will output without canvas element