CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
_unescapeHtmlChar.js22 linesDownload Raw Back to lodash
1var basePropertyOf = require('./_basePropertyOf');2 3/** Used to map HTML entities to characters. */4var htmlUnescapes = {5  '&amp;': '&',6  '&lt;': '<',7  '&gt;': '>',8  '&quot;': '"',9  '&#39;': "'"10};11 12/**13 * Used by `_.unescape` to convert HTML entities to characters.14 *15 * @private16 * @param {string} chr The matched character to unescape.17 * @returns {string} Returns the unescaped character.18 */19var unescapeHtmlChar = basePropertyOf(htmlUnescapes);20 21module.exports = unescapeHtmlChar;22 
basant307/AI_Governance_Project · CoolFace