4 Escape string for use in HTML
9 var escape = require('escape-html');
10 var html = escape('foo & bar');
17 $ npm run-script bench
19 > escape-html@1.0.3 bench nodejs-escape-html
20 > node benchmark/index.js
36 no special characters x 19,435,271 ops/sec ±0.85% (187 runs sampled)
37 single special character x 6,132,421 ops/sec ±0.67% (194 runs sampled)
38 many special characters x 3,175,826 ops/sec ±0.65% (193 runs sampled)