Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Readme.md 707B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # escape-html
  2. Escape string for use in HTML
  3. ## Example
  4. ```js
  5. var escape = require('escape-html');
  6. var html = escape('foo & bar');
  7. // -> foo & bar
  8. ```
  9. ## Benchmark
  10. ```
  11. $ npm run-script bench
  12. > escape-html@1.0.3 bench nodejs-escape-html
  13. > node benchmark/index.js
  14. http_parser@1.0
  15. node@0.10.33
  16. v8@3.14.5.9
  17. ares@1.9.0-DEV
  18. uv@0.10.29
  19. zlib@1.2.3
  20. modules@11
  21. openssl@1.0.1j
  22. 1 test completed.
  23. 2 tests completed.
  24. 3 tests completed.
  25. no special characters x 19,435,271 ops/sec ±0.85% (187 runs sampled)
  26. single special character x 6,132,421 ops/sec ±0.67% (194 runs sampled)
  27. many special characters x 3,175,826 ops/sec ±0.65% (193 runs sampled)
  28. ```
  29. ## License
  30. MIT