mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-14 15:16:18 +00:00
22 lines
493 B
JavaScript
22 lines
493 B
JavaScript
|
var basePropertyOf = require('./_basePropertyOf');
|
||
|
|
||
|
/** Used to map HTML entities to characters. */
|
||
|
var htmlUnescapes = {
|
||
|
'&': '&',
|
||
|
'<': '<',
|
||
|
'>': '>',
|
||
|
'"': '"',
|
||
|
''': "'"
|
||
|
};
|
||
|
|
||
|
/**
|
||
|
* 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;
|