diff options
Diffstat (limited to 'school/node_modules/lodash/_unescapeHtmlChar.js')
-rw-r--r-- | school/node_modules/lodash/_unescapeHtmlChar.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/school/node_modules/lodash/_unescapeHtmlChar.js b/school/node_modules/lodash/_unescapeHtmlChar.js new file mode 100644 index 0000000..a71fecb --- /dev/null +++ b/school/node_modules/lodash/_unescapeHtmlChar.js @@ -0,0 +1,21 @@ +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; |