mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Move internal modules to “internal” folder.
This commit is contained in:
21
.internal/unescapeHtmlChar.js
Normal file
21
.internal/unescapeHtmlChar.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import basePropertyOf from './.internal/basePropertyOf.js';
|
||||
|
||||
/** Used to map HTML entities to characters. */
|
||||
const 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.
|
||||
*/
|
||||
const unescapeHtmlChar = basePropertyOf(htmlUnescapes);
|
||||
|
||||
export default unescapeHtmlChar;
|
||||
Reference in New Issue
Block a user