main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
477 bytes
|
Line | |
---|
1 | import basePropertyOf from './_basePropertyOf.js';
|
---|
2 |
|
---|
3 | /** Used to map characters to HTML entities. */
|
---|
4 | var htmlEscapes = {
|
---|
5 | '&': '&',
|
---|
6 | '<': '<',
|
---|
7 | '>': '>',
|
---|
8 | '"': '"',
|
---|
9 | "'": '''
|
---|
10 | };
|
---|
11 |
|
---|
12 | /**
|
---|
13 | * Used by `_.escape` to convert characters to HTML entities.
|
---|
14 | *
|
---|
15 | * @private
|
---|
16 | * @param {string} chr The matched character to escape.
|
---|
17 | * @returns {string} Returns the escaped character.
|
---|
18 | */
|
---|
19 | var escapeHtmlChar = basePropertyOf(htmlEscapes);
|
---|
20 |
|
---|
21 | export default escapeHtmlChar;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.