Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sanitize-html

Package Overview
Dependencies
Maintainers
15
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sanitize-html - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

3

CHANGELOG.md
# 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",

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