mirror of
https://github.com/nodejs/node.git
synced 2025-05-18 15:22:27 +00:00
![]() PR-URL: https://github.com/nodejs/io.js/pull/2286 Reviewed-By: Roman Reiss <me@silverwind.io> |
||
---|---|---|
.. | ||
index.js | ||
LICENSE | ||
package.json | ||
README.md |
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'