Skip to content

Commit

Permalink
Fixed josdejong#299: reverted the fix of josdejong#268 by trimming te…
Browse files Browse the repository at this point in the history
…xt in fields and values
  • Loading branch information
josdejong committed May 22, 2016
1 parent 7d283f1 commit 8c3c476
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
https://github.com/josdejong/jsoneditor


## not yet released, version 5.5.3

- Fixed #299: reverted the fix of #268 by trimming text in fields and values.


## 2016-04-18, version 5.5.2

- Fixed #294: Fields reset their caret location on every key press in Firefox.
Expand Down
2 changes: 1 addition & 1 deletion src/js/Node.js
Original file line number Diff line number Diff line change
Expand Up @@ -3460,7 +3460,7 @@ Node.prototype._escapeHTML = function (text) {
* @private
*/
Node.prototype._unescapeHTML = function (escapedText) {
var json = '"' + this._escapeJSON(escapedText.trim()) + '"';
var json = '"' + this._escapeJSON(escapedText) + '"';
var htmlEscaped = util.parse(json);

return htmlEscaped
Expand Down

0 comments on commit 8c3c476

Please sign in to comment.