sanitize-html
Advanced tools
Comparing version 2.0.0-rc.1 to 2.0.0-rc.2
# 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. |
@@ -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, |
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
63318