All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.lodash._unescapeHtmlChar.js Maven / Gradle / Ivy

There is a newer version: 3.3.1
Show newest version
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;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy