Name: js-handler/node_modules/nodeunit/deps/ejs/lib/utils.js 
1:
/*!
2:
 * EJS
3:
 * Copyright(c) 2010 TJ Holowaychuk <[email protected]>
4:
 * MIT Licensed
5:
 */
6:
 
7:
/**
8:
 * Escape the given string of `html`.
9:
 *
10:
 * @param {String} html
11:
 * @return {String}
12:
 * @api private
13:
 */
14:
 
15:
exports.escape = function(html){
16:
  return String(html)
17:
    .replace(/&(?!\w+;)/g, '&')
18:
    .replace(/</g, '<')
19:
    .replace(/>/g, '>')
20:
    .replace(/"/g, '"');
21:
};