worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
25
node_modules/react-i18next/dist/es/unescape.js
generated
vendored
Normal file
25
node_modules/react-i18next/dist/es/unescape.js
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
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];
|
||||
export const unescape = text => text.replace(matchHtmlEntity, unescapeHtmlEntity);
|
||||
Loading…
Add table
Add a link
Reference in a new issue