Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Jul 27, 2022
1 parent f91903b commit bccbf33
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 11.18.2

- more html entities to unescape by default [1538](https://github.com/i18next/react-i18next/pull/1538)

### 11.18.1

- types: allow iterable with objects as children [1531](https://github.com/i18next/react-i18next/pull/1531)
Expand Down
12 changes: 10 additions & 2 deletions react-i18next.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
}
};

var matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g;
var matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230);/g;
var htmlEntities = {
'&': '&',
'&': '&',
Expand All @@ -329,7 +329,15 @@
''': "'",
''': "'",
'"': '"',
'"': '"'
'"': '"',
' ': ' ',
' ': ' ',
'©': '©',
'©': '©',
'®': '®',
'®': '®',
'…': '…',
'…': '…'
};

var unescapeHtmlEntity = function unescapeHtmlEntity(m) {
Expand Down
Loading

0 comments on commit bccbf33

Please sign in to comment.