source: trip-planner-front/node_modules/lodash/_unescapeHtmlChar.js@ e29cc2e

Last change on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 493 bytes
Line 
1var basePropertyOf = require('./_basePropertyOf');
2
3/** Used to map HTML entities to characters. */
4var htmlUnescapes = {
5 '&amp;': '&',
6 '&lt;': '<',
7 '&gt;': '>',
8 '&quot;': '"',
9 '&#39;': "'"
10};
11
12/**
13 * Used by `_.unescape` to convert HTML entities to characters.
14 *
15 * @private
16 * @param {string} chr The matched character to unescape.
17 * @returns {string} Returns the unescaped character.
18 */
19var unescapeHtmlChar = basePropertyOf(htmlUnescapes);
20
21module.exports = unescapeHtmlChar;
Note: See TracBrowser for help on using the repository browser.