Comparing version 0.1.1 to 0.1.2
@@ -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 }); |
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
10035
195