Skip to content

A sanitize-html wrapper optimised for sanitising HTML for email clients

License

Notifications You must be signed in to change notification settings

Truemedia/sanitize-mail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A sanitize-html wrapper optimised for sanitising HTML for email clients

Resources

License

Stars

Watchers

Forks

Packages

No packages published