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

resanitize

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resanitize - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

test.html

2

package.json
{ "name" : "resanitize"
, "author" : "Dan MacTough <danmactough@gmail.com>"
, "description" : "Regular expression-based HTML sanitizer and ad remover, geared toward RSS feed descriptions"
, "version" : "0.1.7"
, "version" : "0.1.8"
, "keywords" : ["sanitize", "html", "regexp", "security"]

@@ -6,0 +6,0 @@ , "homepage" : "http://github.com/danmactough/node-resanitize"

@@ -16,3 +16,3 @@ /*!

*
* @param {String} HTML string to sanitize
* @param {String|Buffer} HTML string to sanitize
* @return {String} sanitized HTML

@@ -22,2 +22,10 @@ * @api public

function resanitize (str) {
if ('string' !== typeof str) {
if (Buffer.isBuffer(str)) {
str = str.toString();
}
else {
throw new TypeError('Invalid argument: must be String or Buffer');
}
}
str = stripAsciiCtrlChars(str);

@@ -24,0 +32,0 @@ str = fixSpace(str);

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