Initial commit
[yaffs-website] / node_modules / grunt-contrib-watch / node_modules / lodash / internal / unescapeHtmlChar.js
1 /** Used to map HTML entities to characters. */
2 var htmlUnescapes = {
3   '&': '&',
4   '&lt;': '<',
5   '&gt;': '>',
6   '&quot;': '"',
7   '&#39;': "'",
8   '&#96;': '`'
9 };
10
11 /**
12  * Used by `_.unescape` to convert HTML entities to characters.
13  *
14  * @private
15  * @param {string} chr The matched character to unescape.
16  * @returns {string} Returns the unescaped character.
17  */
18 function unescapeHtmlChar(chr) {
19   return htmlUnescapes[chr];
20 }
21
22 module.exports = unescapeHtmlChar;