index.js 896 B

1234567891011121314151617181920212223242526
  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. /**
  10. * Used to convert characters to HTML entities:
  11. *
  12. * Though the `>` character is escaped for symmetry, characters like `>` and `/`
  13. * don't require escaping in HTML and have no special meaning unless they're part
  14. * of a tag or an unquoted attribute value.
  15. * http://mathiasbynens.be/notes/ambiguous-ampersands (under "semi-related fun fact")
  16. */
  17. var htmlEscapes = {
  18. '&': '&amp;',
  19. '<': '&lt;',
  20. '>': '&gt;',
  21. '"': '&quot;',
  22. "'": '&#39;'
  23. };
  24. module.exports = htmlEscapes;