mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
react app
This commit is contained in:
22
react-app/node_modules/lodash/internal/escapeHtmlChar.js
generated
vendored
Normal file
22
react-app/node_modules/lodash/internal/escapeHtmlChar.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
/** Used to map characters to HTML entities. */
|
||||
var htmlEscapes = {
|
||||
'&': '&',
|
||||
'<': '<',
|
||||
'>': '>',
|
||||
'"': '"',
|
||||
"'": ''',
|
||||
'`': '`'
|
||||
};
|
||||
|
||||
/**
|
||||
* Used by `_.escape` to convert characters to HTML entities.
|
||||
*
|
||||
* @private
|
||||
* @param {string} chr The matched character to escape.
|
||||
* @returns {string} Returns the escaped character.
|
||||
*/
|
||||
function escapeHtmlChar(chr) {
|
||||
return htmlEscapes[chr];
|
||||
}
|
||||
|
||||
module.exports = escapeHtmlChar;
|
Reference in New Issue
Block a user