
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
xml-sanitizer
Advanced tools
Sanitize out invalid xml characters from your strings
Have you ever tried to put the output of a child process into an xml document before? Certain CLI utilities will generate characters that look great on your terminal, but will cause mayhem in XML world. This package is a simply regular expression that will clean all of that up for you!
var xmlSanitizer = require('xml-sanitizer');
var someText = 'This is invalid \u0000';
xmlSanitizer(someText); \\ 'This is invalid '
xmlSanitizer(someText, '🎉'); \\ 'This is invalid 🎉'
MIT.
You can find a copy in LICENSE in the root directory of this project.
FAQs
Sanitize out invalid xml characters from your strings
The npm package xml-sanitizer receives a total of 350 weekly downloads. As such, xml-sanitizer popularity was classified as not popular.
We found that xml-sanitizer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.