1.0.3 • Published 9 years ago

escape-html v1.0.3

Weekly downloads
17,329,646
License
MIT
Repository
github
Last release
9 years ago

escape-html

Escape string for use in HTML

Example

var escape = require('escape-html');
var html = escape('foo & bar');
// -> foo & bar

Benchmark

$ npm run-script bench

> escape-html@1.0.3 bench nodejs-escape-html
> node benchmark/index.js


  http_parser@1.0
  node@0.10.33
  v8@3.14.5.9
  ares@1.9.0-DEV
  uv@0.10.29
  zlib@1.2.3
  modules@11
  openssl@1.0.1j

  1 test completed.
  2 tests completed.
  3 tests completed.

  no special characters    x 19,435,271 ops/sec ±0.85% (187 runs sampled)
  single special character x  6,132,421 ops/sec ±0.67% (194 runs sampled)
  many special characters  x  3,175,826 ops/sec ±0.65% (193 runs sampled)

License

MIT

finalhandlersendserve-staticexpressserve-index@storybook/addon-knobsz-element-pluseee-plus@teakit/atombootstrap-vue-plus@docusaurus/corecomponennentteasy-select-rnchinjowwchinjowvuedragdropuploadimages@docusaurus-azuread/mdx-loaderreact-native-bluetooth2killi8n-react-native-fast-imageextensible-node-serverrn-send-sms@rock-kit/ui-elements@rock-kit/ui-truncate-text@arisageha/react-lazyload@arisageha/react-lazyload-fix@helpscout/editorcodybonney.comsfr-koa@aasaam/pwa-toolsservlingranar-filesmocha-report-generatorwebtorrent-forkreact-native-template-rfbase@simon-id/temp-testdoc-the-libvitepress-dgairscanairscan-examplebb-chatreact-native-esc-pos-sahaab@borisovart/atol-kkt-module@wgytcraft/express@frxf/frxfnucly-templatedeneme323112@texttree/demo-bsa-reference-rcldressermarkdone@coder-mike/micro-vm@ntt_app/react-native-custom-notificationreact-native-custom-text-hwjames@easyboot/core@oknesar/expressreact-native-covid-sdkanime-randomeni-chatvitepress-for-component-customoutput-servicereact-native-thanh-toast-librarypmswebserve@thanhnguyen14797/react-native-thanh-toast-library@l1nyanm1ng/react-picture-viewercthpb-plugin-social@signalchain/expressexpress-easy-staticreact-native-printer-brothersrn-pdf-reader-offline@bigin/dsv3dsv3vite-plugin-ddocvlib-docsifybigin-ui-vue-3react-native-shekhar-bridge-testnhpjs@fenggp/oa-uilevibestliblevibestlib2levilibtest19levilibtest24levilibtest25levilibtest26levilibtest27levilibtest28levilibtest29wilscanner@oiti/documentoscopy-react-nativeslidepiquoc-testrich-text-astro-rendererreact-native-slider-kfnodejs-fileshareunblock-block-save-variableshexa-node-common@infinitebrahmanuniverse/nolb-esc@schwabyio/xrunnerjam3-react-sdkcclibyarntest@saaspe/componentshyperpass-sdk
1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

11 years ago

1.0.0

11 years ago

0.0.1

12 years ago