Comparing version 0.1.2 to 0.1.3
@@ -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); |
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
9934
194