Socket
Socket
Sign inDemoInstall

sanitize-html

Package Overview
Dependencies
Maintainers
8
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sanitize-html - npm Package Versions

1
12

1.4.1

Diff

Changelog

Source

1.4.1, 1.4.2:

more tests.

boutell
published 1.3.0 •

Changelog

Source

1.3.0:

attribs now available on frames passed to exclusive filter.

boutell
published 1.2.3 •

Changelog

Source

1.2.3:

fixed another possible XSS attack vector; no definitive exploit was found but it looks possible. See this issue. Thanks to Jim O'Brien.

boutell
published 1.2.2 •

Changelog

Source

1.2.2:

reject javascript: URLs when disguised with an internal comment. This is probably not respected by browsers anyway except when inside an XML data island element, which you almost certainly are not allowing in your allowedTags, but we aim to be thorough. Thanks to Jim O'Brien.

boutell
published 1.2.1 •

Changelog

Source

1.2.1:

fixed crashing bug when presented with bad markup. The bug was in the exclusiveFilter mechanism. Unit test added. Thanks to Ilya Kantor for catching it.

boutell
published 1.2.0 •

Changelog

Source

1.2.0:

  • The allowedClasses option now allows you to permit CSS classes in a fine-grained way.

  • Text passed to your exclusiveFilter function now includes the text of child elements, making it more useful for identifying elements that truly lack any inner text.

boutell
published 1.1.8 •

boutell
published 1.1.7 •

Changelog

Source

1.1.7:

use he for entity decoding, because it is more actively maintained.

boutell
published 1.1.5 •

Changelog

Source

1.1.5:

just a packaging thing.

boutell
published 1.1.4 •

Changelog

Source

1.1.4:

custom exclusion filter.

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