Socket
Socket
Sign inDemoInstall

sanitize-html

Package Overview
Dependencies
Maintainers
15
Versions
113
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.0.0-rc.1 to 2.0.0-rc.2

3

CHANGELOG.md
# Changelog
## 2.0.0-rc.2 (2020-09-09):
- Always use existing `has` function rather than duplicating it.
## 2.0.0-rc.1 (2020-08-26):

@@ -4,0 +7,0 @@ - Upgrade `klona` package. Thanks to [Bogdan Chadkin](https://github.com/TrySound) for the contribution.

2

index.js

@@ -629,3 +629,3 @@ const htmlparser = require('htmlparser2');

// If this property is whitelisted...
if (Object.prototype.hasOwnProperty.call(selectedRule, attributeObject.prop)) {
if (has(selectedRule, attributeObject.prop)) {
const matchesRegex = selectedRule[attributeObject.prop].some(function(regularExpression) {

@@ -632,0 +632,0 @@ return regularExpression.test(attributeObject.value);

{
"name": "sanitize-html",
"version": "2.0.0-rc.1",
"version": "2.0.0-rc.2",
"description": "Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis",

@@ -5,0 +5,0 @@ "sideEffects": false,

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