diff --git a/boot/boot.js b/boot/boot.js index 0d05b832a..38d5f5472 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -207,10 +207,10 @@ $tw.utils.deepDefaults = function(object /*, sourceObjectList */) { }; /* -Convert "&" to &, "<" to <, ">" to > and """ to " +Convert "&" to &, " " to nbsp, "<" to <, ">" to > and """ to " */ $tw.utils.htmlDecode = function(s) { - return s.toString().replace(/</mg,"<").replace(/>/mg,">").replace(/"/mg,"\"").replace(/&/mg,"&"); + return s.toString().replace(/</mg,"<").replace(/ /mg,"\x40").replace(/>/mg,">").replace(/"/mg,"\"").replace(/&/mg,"&"); }; /*