Icard/angular-clarity-master(work.../node_modules/lodash-es/_unescapeHtmlChar.js

22 lines
491 B
JavaScript
Raw Permalink Normal View History

2024-07-16 14:55:36 +00:00
import basePropertyOf from './_basePropertyOf.js';
/** 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);
export default unescapeHtmlChar;