{"_id":"xml-escape","_rev":"88444","name":"xml-escape","description":"Escape XML ","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"mhernandez","email":"michael.hernandez1988@gmail.com"}],"time":{"modified":"2021-06-03T10:28:45.000Z","created":"2014-02-14T17:26:37.305Z","1.1.0":"2016-03-14T13:11:05.684Z","1.0.0":"2014-02-14T17:26:37.305Z"},"users":{"carlosvillademor":true,"zuojiang":true,"hacksalot":true,"hyteer":true,"heineiuo":true},"author":{"name":"Michael Hernandez - michael.hernandez1988@gmail.com"},"repository":{"type":"git","url":"git://github.com/miketheprogrammer/xml-escape.git"},"versions":{"1.1.0":{"name":"xml-escape","version":"1.1.0","description":"Escape XML ","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/miketheprogrammer/xml-escape.git"},"keywords":["Escape","XML","Unesacpe","encoding","xml-escape"],"author":{"name":"Michael Hernandez - michael.hernandez1988@gmail.com"},"license":"MIT License","bugs":{"url":"https://github.com/miketheprogrammer/xml-escape/issues"},"homepage":"https://github.com/miketheprogrammer/xml-escape","dependencies":{},"devDependencies":{"tape":"~2.4.2"},"gitHead":"c42a09afa81e645ca6881dbaf384d7f3c63735e4","_id":"xml-escape@1.1.0","_shasum":"3904c143fa8eb3a0030ec646d2902a2f1b706c44","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.5.0","_npmUser":{"name":"mhernandez","email":"michael.hernandez1988@gmail.com"},"dist":{"shasum":"3904c143fa8eb3a0030ec646d2902a2f1b706c44","size":2860,"noattachment":false,"key":"/xml-escape/-/xml-escape-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xml-escape/download/xml-escape-1.1.0.tgz"},"maintainers":[{"name":"mhernandez","email":"michael.hernandez1988@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/xml-escape-1.1.0.tgz_1457961063163_0.10634087934158742"},"directories":{},"publish_time":1457961065684,"_cnpm_publish_time":1457961065684,"_hasShrinkwrap":false},"1.0.0":{"name":"xml-escape","version":"1.0.0","description":"Escape XML ","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/miketheprogrammer/xml-escape.git"},"keywords":["Escape","XML","Unesacpe","encoding","xml-escape"],"author":{"name":"Michael Hernandez - michael.hernandez1988@gmail.com"},"license":"MIT License","bugs":{"url":"https://github.com/miketheprogrammer/xml-escape/issues"},"homepage":"https://github.com/miketheprogrammer/xml-escape","dependencies":{},"devDependencies":{"tape":"~2.4.2"},"_id":"xml-escape@1.0.0","dist":{"shasum":"00963d697b2adf0c185c4e04e73174ba9b288eb2","size":1719,"noattachment":false,"key":"/xml-escape/-/xml-escape-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xml-escape/download/xml-escape-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"mhernandez","email":"michael.hernandez1988@gmail.com"},"maintainers":[{"name":"mhernandez","email":"michael.hernandez1988@gmail.com"}],"directories":{},"publish_time":1392398797305,"_cnpm_publish_time":1392398797305,"_hasShrinkwrap":false}},"readme":"xml-escape\n==========\n\nEscape XML in javascript (NodeJS)\n\nnpm install xml-escape\n\n```javascript\n// Warning escape is a reserved word, so maybe best to use xmlescape for var name\nvar xmlescape = require('xml-escape');\n\nxmlescape('\"hello\" \\'world\\' & false < true > -1');\n\n// output\n// '&quot;hello&quot; &apos;world&apos; &amp; false &lt; true &gt; -1'\n\n// don't escape some characters\nxmlescape('\"hello\" \\'world\\' & false < true > -1', '>\"&')\n\n// output\n// '\"hello\" &apos;world&apos; & false &lt; true > -1'\n```\n\n\nThere is also now an ignore function thanks to @jayflo\n\n```javascript\nesc = require('./');\n\nignore = '\"<&'\n// note you should never ignore an &\noutput = esc('I am \"<&not>\" escaped', ignore)\nconsole.log(output)\n\n//I am \"<&not&gt;\" escaped\n```\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/miketheprogrammer/xml-escape/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n","_attachments":{},"homepage":"https://github.com/miketheprogrammer/xml-escape","bugs":{"url":"https://github.com/miketheprogrammer/xml-escape/issues"},"license":"MIT License"}