1
0
Fork 0
mirror of https://github.com/actions/setup-python.git synced 2024-09-20 00:56:43 +00:00
setup-python/node_modules/lodash/_unescapeHtmlChar.js
Danny McCormick 39c08a0eaa Initial pass
2019-06-26 21:12:00 -04:00

22 lines
493 B
JavaScript

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;