main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
491 bytes
|
Line | |
---|
1 | import basePropertyOf from './_basePropertyOf.js';
|
---|
2 |
|
---|
3 | /** Used to map HTML entities to characters. */
|
---|
4 | var htmlUnescapes = {
|
---|
5 | '&': '&',
|
---|
6 | '<': '<',
|
---|
7 | '>': '>',
|
---|
8 | '"': '"',
|
---|
9 | ''': "'"
|
---|
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 | */
|
---|
19 | var unescapeHtmlChar = basePropertyOf(htmlUnescapes);
|
---|
20 |
|
---|
21 | export default unescapeHtmlChar;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.