jsdoc-75lb
Version:
An API documentation generator for JavaScript.
15 lines (9 loc) • 337 B
Markdown
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'