sanitize-html
Advanced tools
Comparing version 2.2.0 to 2.3.0
# Changelog | ||
## 2.3.0 (2020-12-16): | ||
- Upgrades `htmlparser2` to new major version `^6.0.0`. Thanks to [Bogdan Chadkin](https://github.com/TrySound) for the contribution. | ||
## 2.2.0 (2020-12-02): | ||
@@ -4,0 +7,0 @@ - Adds a note to the README about Typescript support (or the lack-thereof). |
14
index.js
@@ -112,13 +112,5 @@ const htmlparser = require('htmlparser2'); | ||
if (!options) { | ||
options = sanitizeHtml.defaults; | ||
options.parser = htmlParserDefaults; | ||
} else { | ||
options = Object.assign({}, sanitizeHtml.defaults, options); | ||
if (options.parser) { | ||
options.parser = Object.assign({}, htmlParserDefaults, options.parser); | ||
} else { | ||
options.parser = htmlParserDefaults; | ||
} | ||
} | ||
options = Object.assign({}, sanitizeHtml.defaults, options); | ||
options.parser = Object.assign({}, htmlParserDefaults, options.parser); | ||
// vulnerableTags | ||
@@ -125,0 +117,0 @@ vulnerableTags.forEach(function (tag) { |
{ | ||
"name": "sanitize-html", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis", | ||
@@ -28,3 +28,3 @@ "sideEffects": false, | ||
"escape-string-regexp": "^4.0.0", | ||
"htmlparser2": "^4.1.0", | ||
"htmlparser2": "^6.0.0", | ||
"is-plain-object": "^5.0.0", | ||
@@ -31,0 +31,0 @@ "klona": "^2.0.3", |
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
67207
671
+ Addedhtmlparser2@6.1.0(transitive)
- Removeddomhandler@3.3.0(transitive)
- Removedhtmlparser2@4.1.0(transitive)
Updatedhtmlparser2@^6.0.0