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

@locker/html-sanitizer

Package Overview
Dependencies
Maintainers
0
Versions
226
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@locker/html-sanitizer

Lightning Web Security HTML and SVG sanitization utilities

  • 0.23.7
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@locker/html-sanitizer

Lightning Web Security HTML and SVG sanitization utilities

This package provides a set of utilities to facilitate the sanitization of HTML and SVG using DOMPurify.

Features
  • Caching mechanism to store DOMPurify instances based on configuration objects. This avoids re-parsing the configuration object.
  • Utility functions meant to facilitate working with predefined configuration objects required by Locker in various scenarios, i.e sanitization of SVG strings, sanitization of Blob HTML content strings, sanitization of strings that are to be usd with innerHTML, outerHTML etc.
  • Hook for sanitizing SVG network resources (even if they are nested).

FAQs

Package last updated on 10 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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