Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

escape-html

Package Overview
Dependencies
0
Maintainers
2
Versions
5
Issues
File Explorer

Advanced tools

escape-html

Escape string for use in HTML

    1.0.3latest

Version published
Maintainers
2
Weekly downloads
25,241,782
decreased by-10.87%

Weekly downloads

Readme

Source

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[email protected]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

Keywords

FAQs

What is escape-html?

Escape string for use in HTML

Is escape-html popular?

The npm package escape-html receives a total of 20,413,510 weekly downloads. As such, escape-html popularity was classified as popular.

Is escape-html well maintained?

We found that escape-html demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 2 open source maintainers collaborating on the project.

Last updated on 01 Sep 2015

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc