From 8c3c476fe7da9165d662b04203ff10f06c722f57 Mon Sep 17 00:00:00 2001 From: jos Date: Sun, 22 May 2016 14:59:37 +0200 Subject: [PATCH] Fixed #299: reverted the fix of #268 by trimming text in fields and values --- HISTORY.md | 5 +++++ src/js/Node.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index 12a8637..fa330e0 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -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. diff --git a/src/js/Node.js b/src/js/Node.js index 67f22ab..f8e5282 100644 --- a/src/js/Node.js +++ b/src/js/Node.js @@ -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