[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

🚚 Sanitize out invalid xml characters from your strings 🚚

License

Notifications You must be signed in to change notification settings

feelepxyz/xml-sanitizer

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

62 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

xml-sanitizer

Sanitize out invalid xml characters from your strings

Purpose

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!

Usage

var xmlSanitizer = require('xml-sanitizer');
var someText = 'This is invalid \u0000';

xmlSanitizer(someText); \\ 'This is invalid '
xmlSanitizer(someText, 'πŸŽ‰'); \\ 'This is invalid πŸŽ‰'

License

MIT.

You can find a copy in LICENSE in the root directory of this project.

About

🚚 Sanitize out invalid xml characters from your strings 🚚

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%