a8e9ebec882d407b1622a308dd914a324831df8ce6343772bd29c52277e98df43375866c1056fc69d105c3886647f616fd4fadf8953674ba8d23c78858eff1 477 B

123456789101112131415161718192021
  1. import basePropertyOf from './_basePropertyOf.js';
  2. /** Used to map characters to HTML entities. */
  3. var htmlEscapes = {
  4. '&': '&',
  5. '<': '&lt;',
  6. '>': '&gt;',
  7. '"': '&quot;',
  8. "'": '&#39;'
  9. };
  10. /**
  11. * Used by `_.escape` to convert characters to HTML entities.
  12. *
  13. * @private
  14. * @param {string} chr The matched character to escape.
  15. * @returns {string} Returns the escaped character.
  16. */
  17. var escapeHtmlChar = basePropertyOf(htmlEscapes);
  18. export default escapeHtmlChar;