2.0.0 • Published 4 months ago

xml-sanitizer v2.0.0

Weekly downloads
231
License
MIT
Repository
github
Last release
4 months ago

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.

2.0.0

4 months ago

1.2.9

10 months ago

1.2.8

1 year ago

1.2.7

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.0

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.1.19

2 years ago

1.1.18

2 years ago

1.1.17

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.1.14

2 years ago

1.1.12

2 years ago

1.1.13

2 years ago

1.1.11

3 years ago

1.1.10

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago