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

sanitize-html

Package Overview
Dependencies
Maintainers
9
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sanitize-html - npm Package Versions

1
1012

1.1.4

Diff

Changelog

Source

1.1.4:

custom exclusion filter.

boutell
published 1.1.3 •

Changelog

Source

1.1.3:

moved to lodash. 1.1.2 pointed to the wrong version of lodash.

boutell
published 1.1.2 •

boutell
published 1.1.1 •

boutell
published 1.1.0 •

Changelog

Source

1.1.0:

the transformTags option was added. Thanks to kl3ryk.

boutell
published 1.0.3 •

Changelog

Source

1.0.3:

fixed several more javascript URL attack vectors after studying the XSS filter evasion cheat sheet to better understand my enemy. Whitespace characters (codes from 0 to 32), which browsers ignore in URLs in certain cases allowing the "javascript" scheme to be snuck in, are now stripped out when checking for naughty URLs. Thanks again to pinpickle.

boutell
published 1.0.2 •

Changelog

Source

1.0.2:

fixed a javascript URL attack vector. naughtyHref must entity-decode URLs and also check for mixed-case scheme names. Thanks to pinpickle.

boutell
published 1.0.1 •

Changelog

Source

1.0.1:

Doc tweaks.

boutell
published 1.0.0 •

Changelog

Source

1.0.0:

If the style tag is disallowed, then its content should be dumped, so that it doesn't appear as text. We were already doing this for script tags, however in both cases the content is now preserved if the tag is explicitly allowed.

We're rocking our tests and have been working great in production for months, so: declared 1.0.0 stable.

boutell
published 0.1.4 •

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