blob: db55ce80c60b8c58e445779f6ca0552b109373e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
xml-escape
==========
Escape XML in javascript (NodeJS)
npm install xml-escape
// Warning escape is a reserved word, so maybe best to use xmlescape for var name
var xmlescape = require('xml-escape');
xmlescape('"hello" \'world\' & false < true > -1')
// output
// '"hello" 'world' & true < false > -1'
|