{"_id":"html-escape","_rev":"2794291","name":"html-escape","description":"Escape string for use in html","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"parshap","email":""}],"time":{"modified":"2022-07-08T02:37:34.000Z","created":"2013-10-17T09:06:34.226Z","2.0.0":"2016-04-20T07:03:55.115Z","1.0.2":"2015-06-12T23:44:33.036Z","1.0.1":"2013-10-17T09:11:04.003Z","1.0.0":"2013-10-17T09:06:34.226Z"},"users":{},"author":{"name":"Parsha Pourkhomami"},"repository":{"type":"git","url":"git+ssh://git@github.com/parshap/html-escape.git"},"versions":{"2.0.0":{"name":"html-escape","version":"2.0.0","description":"Escape string for use in html","main":"index.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git+ssh://git@github.com/parshap/html-escape.git"},"keywords":["html","html entities","escape","xss"],"author":{"name":"Parsha Pourkhomami"},"license":"Public Domain","bugs":{"url":"https://github.com/parshap/html-escape/issues"},"devDependencies":{"tape":"~2.0.0"},"gitHead":"0e42410116f02d7a9ee6cfdd18bd185e0f24eb89","homepage":"https://github.com/parshap/html-escape#readme","_id":"html-escape@2.0.0","_shasum":"60c8ddd465edf0cae02af9e99fdf5f883b09be49","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.2.6","_npmUser":{"name":"parshap","email":"parshap+npm@gmail.com"},"maintainers":[{"name":"parshap","email":""}],"dist":{"shasum":"60c8ddd465edf0cae02af9e99fdf5f883b09be49","size":1484,"noattachment":false,"key":"/html-escape/-/html-escape-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-escape/download/html-escape-2.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/html-escape-2.0.0.tgz_1461135832984_0.47069881670176983"},"directories":{},"publish_time":1461135835115,"_hasShrinkwrap":false,"_cnpm_publish_time":1461135835115,"_cnpmcore_publish_time":"2021-12-17T04:41:45.821Z"},"1.0.2":{"name":"html-escape","version":"1.0.2","description":"Escape reserved HTML characters","main":"index.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git@github.com:parshap/html-escape.git"},"keywords":["html","html entities","escape","xss"],"author":{"name":"Parsha Pourkhomami"},"license":"Public Domain","bugs":{"url":"https://github.com/parshap/html-escape/issues"},"devDependencies":{"tape":"~2.0.0"},"gitHead":"4b07a7a770ff3c5dc9bd7e90004ea22225cf6f8b","homepage":"https://github.com/parshap/html-escape","_id":"html-escape@1.0.2","_shasum":"5fa787c0568090fe332ed5b3cf4aa4f646421a74","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.10.35","_npmUser":{"name":"parshap","email":"parshap+npm@gmail.com"},"maintainers":[{"name":"parshap","email":""}],"dist":{"shasum":"5fa787c0568090fe332ed5b3cf4aa4f646421a74","size":1217,"noattachment":false,"key":"/html-escape/-/html-escape-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-escape/download/html-escape-1.0.2.tgz"},"directories":{},"publish_time":1434152673036,"_hasShrinkwrap":false,"_cnpm_publish_time":1434152673036,"_cnpmcore_publish_time":"2021-12-17T04:41:46.019Z"},"1.0.1":{"name":"html-escape","version":"1.0.1","description":"Escape reserved HTML characters","main":"index.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git@github.com:parshap/html-escape.git"},"keywords":["html","html entities","escape","xss"],"author":{"name":"Parsha Pourkhomami"},"license":"Public Domain","bugs":{"url":"https://github.com/parshap/html-escape/issues"},"devDependencies":{"tape":"~2.0.0"},"readmeFilename":"README.md","_id":"html-escape@1.0.1","dist":{"shasum":"993ac485fab35cbe40ab2d2be86fb69a0be3996a","size":1186,"noattachment":false,"key":"/html-escape/-/html-escape-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-escape/download/html-escape-1.0.1.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"parshap","email":"supster+npm@gmail.com"},"maintainers":[{"name":"parshap","email":""}],"directories":{},"publish_time":1382001064003,"_hasShrinkwrap":false,"_cnpm_publish_time":1382001064003,"_cnpmcore_publish_time":"2021-12-17T04:41:46.231Z"},"1.0.0":{"name":"html-escape","version":"1.0.0","description":"Escape HTML entities","main":"index.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git@github.com:parshap/html-escape.git"},"keywords":["html","escape","xss"],"author":{"name":"Parsha Pourkhomami"},"license":"Public Domain","bugs":{"url":"https://github.com/parshap/html-escape/issues"},"devDependencies":{"tape":"~2.0.0"},"readmeFilename":"README.md","_id":"html-escape@1.0.0","dist":{"shasum":"db2db5526a64c04a41c7677de3056c0d1381d465","size":1153,"noattachment":false,"key":"/html-escape/-/html-escape-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-escape/download/html-escape-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"parshap","email":"supster+npm@gmail.com"},"maintainers":[{"name":"parshap","email":""}],"directories":{},"publish_time":1382000794226,"_hasShrinkwrap":false,"_cnpm_publish_time":1382000794226,"_cnpmcore_publish_time":"2021-12-17T04:41:46.424Z"}},"readme":"# html-escape\n\nEscape a string to be safe for use in html. `&`, `<`, `'`, and `\"`\ncharacters are replaced with with their [named character references][]:\n`&amp;`, `&lt;`, `&apos;`, and `&quot;`. Escaped strings will be safe\nfor use in the following contexts:\n\n * [RCDATA][] and [DATA][html-data] (content of all elements except for\n   `<script>` and `<style>`)\n * [Single-quoted attribute values][html-single-attribute] `'`\n * [Double-quoted attribute values][html-double-attribute] `\"`\n\n[named character references]: https://html.spec.whatwg.org/multipage/syntax.html#named-character-references\n[html-data]: https://html.spec.whatwg.org/multipage/syntax.html#data-state\n[rcdata]: https://html.spec.whatwg.org/multipage/syntax.html#rcdata-state\n[html-single-attribute]: https://html.spec.whatwg.org/multipage/syntax.html#attribute-value-(single-quoted)-state\n[html-double-attribute]: https://html.spec.whatwg.org/multipage/syntax.html#attribute-value-(double-quoted)-state\n\n# Example\n\n```js\nvar escape = require(\"html-escape\");\nvar xssAttempt = \"Hello <script>while(1);</script> world!\";\n// Output safe html\nconsole.log(\"<p>\" + escape(xssAttempt) + \"</p>\");\n// \"<p>Hello &lt;script>while(1);&lt;/script> world!</p>\"\n```\n\n# Installation\n\n```\nnpm install html-escape\n```\n","_attachments":{},"homepage":"https://github.com/parshap/html-escape#readme","bugs":{"url":"https://github.com/parshap/html-escape/issues"},"license":"Public Domain"}