Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

DEPRECATED - HTML sanitizer used by the Firefox OS e-mail client

Notifications You must be signed in to change notification settings

mozilla-b2g/bleach.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A white-list based HTML/CSS sanitizer that is intended to run in a DOM worker where there is no access to the DOM. The current intent of this library is to sanitize HTML messages for the Firefox OS Gaia email app. You can learn more about its use-case at: https://github.com/mozilla-b2g/gaia-email-libs-and-more/blob/1cba504fa6729daa89454ccb275ea66ad29c4fab/js/htmlchew.js#L26

The master branch of this repo was a main-thread implementation that uses the real DOM and its parsing super-powers. It is frozen in time and you probably do not want to use it. Instead, consider something like DOMpurify.js.

Tests are implemented using mocha.

About

DEPRECATED - HTML sanitizer used by the Firefox OS e-mail client

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 69.0%
  • HTML 31.0%