New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aegisjsproject/sanitizer

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aegisjsproject/sanitizer - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

5

CHANGELOG.md

@@ -9,2 +9,7 @@ # Changelog

## [v0.0.4] - 2024-03-27
### Fixed
- Use `aegis-sanitizer#html` policy on content given to `parser.parseFromString()`
## [v0.0.3] - 2024-03-27

@@ -11,0 +16,0 @@

2

package.json
{
"name": "@aegisjsproject/sanitizer",
"version": "0.0.3",
"version": "0.0.4",
"description": "A polyfill for the Sanitizer API with various sanitizer configs",

@@ -5,0 +5,0 @@ "keywords": [

@@ -40,3 +40,3 @@ import { sanitizer as sanitizerConfig } from './config/html.js';

export function parseHTML(content, { sanitizer = sanitizerConfig } = {}) {
const doc = new DOMParser().parseFromString(content, 'text/html');
const doc = new DOMParser().parseFromString(policy.createHTML(content), 'text/html');
sanitize(doc, sanitizer);

@@ -43,0 +43,0 @@ return doc;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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