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.1 to 0.1.2

7

lib/bleach.js

@@ -9,7 +9,10 @@ /*

matcher: /<\/?([a-zA-Z0-9]+)*([^\/]*?)\/?>/igm,
matcher: /<\/?([a-zA-Z0-9]+)*(.*?)\/?>/igm,
whitelist: [
'a',
'p'
'b',
'p',
'em',
'strong'
],

@@ -16,0 +19,0 @@

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

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

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

@@ -58,3 +58,3 @@ var vows = require('vows'),

var whitelist = ['br'],
input = '<html><body><p>hello<br />world!</p></body></html>',
input = '<html><body><p>hello<br />world!</p></body></html><script type="text/javascript" />',
output = 'hello<br />world!',

@@ -61,0 +61,0 @@ outcome = sanitize(input, { list: whitelist });

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