Comparing version 0.0.0 to 0.1.0
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3091
64
79