index.js 753 B

12345678910111213141516171819202122
  1. /**
  2. * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/>
  3. * Build: `lodash modularize modern exports="npm" -o ./npm/`
  4. * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
  5. * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
  6. * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  7. * Available under MIT license <http://lodash.com/license>
  8. */
  9. var htmlEscapes = require('lodash._htmlescapes');
  10. /**
  11. * Used by `escape` to convert characters to HTML entities.
  12. *
  13. * @private
  14. * @param {string} match The matched character to escape.
  15. * @returns {string} Returns the escaped character.
  16. */
  17. function escapeHtmlChar(match) {
  18. return htmlEscapes[match];
  19. }
  20. module.exports = escapeHtmlChar;