From 5af30086c02b9d4466c133c87aca76f9b85eea49 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 28 Jan 2014 15:23:58 +0000 Subject: [PATCH] Fix substitution for nbsp We were substituting the wrong character for non-breaking spaces --- boot/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/boot.js b/boot/boot.js index 9310e464b..7a0770021 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -201,7 +201,7 @@ $tw.utils.deepDefaults = function(object /*, sourceObjectList */) { Convert "&" to &, " " to nbsp, "<" to <, ">" to > and """ to " */ $tw.utils.htmlDecode = function(s) { - return s.toString().replace(/</mg,"<").replace(/ /mg,"\x40").replace(/>/mg,">").replace(/"/mg,"\"").replace(/&/mg,"&"); + return s.toString().replace(/</mg,"<").replace(/ /mg,"\xA0").replace(/>/mg,">").replace(/"/mg,"\"").replace(/&/mg,"&"); }; /*