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

xml-sanitizer

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xml-sanitizer - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

2

index.js

@@ -7,5 +7,5 @@ // A list of invalid XML characters can be found at https://www.w3.org/TR/2000/REC-xml-20001006#NT-Char

function xmlSanitizer(string, replacement) {
return stripAnsi(string.replace(/[\u0000-\u0008]|\u000B|\u000C|[\u000E-\u001F]|[\u0075-\u0084]|[\u0086-\u009f]|[\uD800-\uDFFF]|[\uFDD0-\uFDFF]|\uFFFF/, replacement || ''));
return stripAnsi(string.replace(/[\u0000-\u0008]|\u000B|\u000C|[\u000E-\u001F]|[\u0075-\u0084]|[\u0086-\u009f]|[\uD800-\uDFFF]|[\uFDD0-\uFDFF]|\uFFFF/g, replacement || ''));
}
module.exports = xmlSanitizer;
{
"name": "xml-sanitizer",
"version": "1.1.2",
"version": "1.1.3",
"description": "Sanitize out invalid xml characters from your strings",

@@ -5,0 +5,0 @@ "main": "index.js",

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