sanitize-mail
v1.0.0
Published
A sanitize-html wrapper optimised for sanitising HTML for email clients
Downloads
313
Maintainers
Readme
Sanitize mail
A sanitize-html wrapper optimised for sanitising HTML for email clients
Installation
NPM
npm i --save sanitize-mail
Yarn
yarn add sanitize-mail
Usage
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