UNPKG

lodash-es

Version:

Lodash exported as ES modules.

22 lines (18 loc) 491 B
import basePropertyOf from './_basePropertyOf.js'; /** Used to map HTML entities to characters. */ var htmlUnescapes = { '&amp;': '&', '&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;