Projektstart
This commit is contained in:
32
frontend/node_modules/react-i18next/dist/commonjs/unescape.js
generated
vendored
Normal file
32
frontend/node_modules/react-i18next/dist/commonjs/unescape.js
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.unescape = void 0;
|
||||
const matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
|
||||
const htmlEntities = {
|
||||
'&': '&',
|
||||
'&': '&',
|
||||
'<': '<',
|
||||
'<': '<',
|
||||
'>': '>',
|
||||
'>': '>',
|
||||
''': "'",
|
||||
''': "'",
|
||||
'"': '"',
|
||||
'"': '"',
|
||||
' ': ' ',
|
||||
' ': ' ',
|
||||
'©': '©',
|
||||
'©': '©',
|
||||
'®': '®',
|
||||
'®': '®',
|
||||
'…': '…',
|
||||
'…': '…',
|
||||
'/': '/',
|
||||
'/': '/'
|
||||
};
|
||||
const unescapeHtmlEntity = m => htmlEntities[m];
|
||||
const unescape = text => text.replace(matchHtmlEntity, unescapeHtmlEntity);
|
||||
exports.unescape = unescape;
|
||||
Reference in New Issue
Block a user