Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bleach

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bleach - npm Package Compare versions

Comparing version 0.0.0 to 0.1.0

README.md

14

lib/bleach.js

@@ -16,6 +16,3 @@ /*

sanitize: function(html, options){
var mode = options.mode || 'white',
list = options.list || this.whitelist;
analyze: function(html) {
var matches = [],

@@ -48,3 +45,12 @@ match;

}
return matches;
},
sanitize: function(html, options) {
var mode = options.mode || 'white',
list = options.list || this.whitelist;
var matches = this.analyze(html);
matches.forEach(function(tag){

@@ -51,0 +57,0 @@ if (mode == 'white') {

@@ -5,3 +5,3 @@ {

"description": "A minimalistic HTML sanitizer",
"version": "0.0.0",
"version": "0.1.0",
"homepage": "https://github.com/ecto/bleach/issues",

@@ -8,0 +8,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc