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.1.2 to 0.1.3

3

lib/bleach.js

@@ -20,4 +20,3 @@ /*

analyze: function(html) {
if (!html) throw Error('You must pass in HTML as an argument.');
if (typeof html != 'string') throw Error('HTML must be a string.');
html = String(html) || '';

@@ -24,0 +23,0 @@ var matches = [],

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

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

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

@@ -47,3 +47,3 @@ # bleach

var html = bleach.sanitize(aBunchOfHTML);
var html = bleach.sanitize(aBunchOfHTML, options);

@@ -50,0 +50,0 @@ console.log(html);

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