Fixed #81: issue with non-breaking space characters

This commit is contained in:
josdejong 2013-12-07 15:51:23 +01:00
parent e302507c7a
commit 870169447f
4 changed files with 4 additions and 3 deletions

View File

@ -6,6 +6,7 @@ http://jsoneditoronline.org
## (not yet released), version 2.3.5 ## (not yet released), version 2.3.5
- Fixed a positioning issue of the action menu again. - Fixed a positioning issue of the action menu again.
- Fixed an issue with non-breaking space characters.
## 2013-11-19, version 2.3.4 ## 2013-11-19, version 2.3.4

2
jsoneditor-min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -4123,7 +4123,7 @@ Node.prototype._unescapeHTML = function (escapedText) {
return htmlEscaped return htmlEscaped
.replace(/&lt;/g, '<') .replace(/&lt;/g, '<')
.replace(/&gt;/g, '>') .replace(/&gt;/g, '>')
.replace(/&nbsp;/g, ' '); .replace(/&nbsp;|\u00A0/g, ' ');
}; };
/** /**

View File

@ -2815,7 +2815,7 @@ Node.prototype._unescapeHTML = function (escapedText) {
return htmlEscaped return htmlEscaped
.replace(/&lt;/g, '<') .replace(/&lt;/g, '<')
.replace(/&gt;/g, '>') .replace(/&gt;/g, '>')
.replace(/&nbsp;/g, ' '); .replace(/&nbsp;|\u00A0/g, ' ');
}; };
/** /**