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/unescapeHtmlChar.js
generated
vendored
Normal file
22
react-app/node_modules/lodash/internal/unescapeHtmlChar.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
/** Used to map HTML entities to characters. */
|
||||
var 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.
|
||||
*/
|
||||
function unescapeHtmlChar(chr) {
|
||||
return htmlUnescapes[chr];
|
||||
}
|
||||
|
||||
module.exports = unescapeHtmlChar;
|
Reference in New Issue
Block a user