From 4b14305623d5ddc59f435fc5e35c54c0def1d392 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 27 Apr 2013 18:20:41 -0400 Subject: Change to node/express app --- node_modules/ejs/lib/utils.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 node_modules/ejs/lib/utils.js (limited to 'node_modules/ejs/lib/utils.js') diff --git a/node_modules/ejs/lib/utils.js b/node_modules/ejs/lib/utils.js new file mode 100644 index 0000000..8d569d6 --- /dev/null +++ b/node_modules/ejs/lib/utils.js @@ -0,0 +1,23 @@ + +/*! + * EJS + * Copyright(c) 2010 TJ Holowaychuk + * MIT Licensed + */ + +/** + * Escape the given string of `html`. + * + * @param {String} html + * @return {String} + * @api private + */ + +exports.escape = function(html){ + return String(html) + .replace(/&(?!\w+;)/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); +}; + \ No newline at end of file -- cgit v1.2.3