Version 1
[yaffs-website] / node_modules / underscore.string / helper / escapeChars.js
diff --git a/node_modules/underscore.string/helper/escapeChars.js b/node_modules/underscore.string/helper/escapeChars.js
new file mode 100644 (file)
index 0000000..25f4a9a
--- /dev/null
@@ -0,0 +1,19 @@
+/* We're explicitly defining the list of entities we want to escape.
+nbsp is an HTML entity, but we don't want to escape all space characters in a string, hence its omission in this map.
+
+*/
+var escapeChars = {
+    '¢' : 'cent',
+    '£' : 'pound',
+    '¥' : 'yen',
+    '€': 'euro',
+    '©' :'copy',
+    '®' : 'reg',
+    '<' : 'lt',
+    '>' : 'gt',
+    '"' : 'quot',
+    '&' : 'amp',
+    "'" : '#39'
+};
+
+module.exports = escapeChars;