diff options
Diffstat (limited to 'node_modules/lodash._htmlescapes/index.js')
-rw-r--r-- | node_modules/lodash._htmlescapes/index.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/node_modules/lodash._htmlescapes/index.js b/node_modules/lodash._htmlescapes/index.js new file mode 100644 index 000000000..f69503d44 --- /dev/null +++ b/node_modules/lodash._htmlescapes/index.js @@ -0,0 +1,26 @@ +/** + * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> + * Build: `lodash modularize modern exports="npm" -o ./npm/` + * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> + * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> + * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + * Available under MIT license <http://lodash.com/license> + */ + +/** + * Used to convert characters to HTML entities: + * + * Though the `>` character is escaped for symmetry, characters like `>` and `/` + * don't require escaping in HTML and have no special meaning unless they're part + * of a tag or an unquoted attribute value. + * http://mathiasbynens.be/notes/ambiguous-ampersands (under "semi-related fun fact") + */ +var htmlEscapes = { + '&': '&', + '<': '<', + '>': '>', + '"': '"', + "'": ''' +}; + +module.exports = htmlEscapes; |