/node_modules/lodash/_unescapeHtmlChar.js
https://bitbucket.org/coleman333/smartsite · JavaScript · 21 lines · 19 code · 1 blank · 1 comment · 0 complexity · 4be16d77ceba08fce71cc504c3433c1c MD5 · raw file
- var basePropertyOf = require('./_basePropertyOf');
- /** Used to map HTML entities to characters. */
- var htmlUnescapes = {
- '&': '&',
- '<': '<',
- '>': '>',
- '"': '"',
- ''': "'"
- };
- /**
- * 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);
- module.exports = unescapeHtmlChar;