forked from fdzcxy212206413/gsl_grs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
491 B
22 lines
491 B
1 month ago
|
import basePropertyOf from './_basePropertyOf.js';
|
||
|
|
||
|
/** 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);
|
||
|
|
||
|
export default unescapeHtmlChar;
|