aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/ejs/lib/utils.js
diff options
context:
space:
mode:
authorTeddy Wing2013-04-27 18:20:41 -0400
committerTeddy Wing2013-04-27 18:20:41 -0400
commit4b14305623d5ddc59f435fc5e35c54c0def1d392 (patch)
treeef780015587343a48c46a59a7ccd0263308d062a /node_modules/ejs/lib/utils.js
parent52127aee97d0d16be652d2063c9aefbbef234f43 (diff)
downloadWho-am-I-4b14305623d5ddc59f435fc5e35c54c0def1d392.tar.bz2
Change to node/express app
Diffstat (limited to 'node_modules/ejs/lib/utils.js')
-rw-r--r--node_modules/ejs/lib/utils.js23
1 files changed, 23 insertions, 0 deletions
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 <tj@vision-media.ca>
+ * 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, '&amp;')
+ .replace(/</g, '&lt;')
+ .replace(/>/g, '&gt;')
+ .replace(/"/g, '&quot;');
+};
+ \ No newline at end of file