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