Version 1
[yaffs-website] / node_modules / grunt-legacy-log-utils / node_modules / lodash / _unescapeHtmlChar.js
diff --git a/node_modules/grunt-legacy-log-utils/node_modules/lodash/_unescapeHtmlChar.js b/node_modules/grunt-legacy-log-utils/node_modules/lodash/_unescapeHtmlChar.js
new file mode 100644 (file)
index 0000000..28b3454
--- /dev/null
@@ -0,0 +1,22 @@
+/** Used to map HTML entities to characters. */
+var htmlUnescapes = {
+  '&': '&',
+  '&lt;': '<',
+  '&gt;': '>',
+  '&quot;': '"',
+  '&#39;': "'",
+  '&#96;': '`'
+};
+
+/**
+ * Used by `_.unescape` to convert HTML entities to characters.
+ *
+ * @private
+ * @param {string} chr The matched character to unescape.
+ * @returns {string} Returns the unescaped character.
+ */
+function unescapeHtmlChar(chr) {
+  return htmlUnescapes[chr];
+}
+
+module.exports = unescapeHtmlChar;