PageRenderTime 43ms CodeModel.GetById 36ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1var basePropertyOf = require('./_basePropertyOf');
 2
 3/** Used to map HTML entities to characters. */
 4var htmlUnescapes = {
 5  '&': '&',
 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;