Fix substitution for nbsp

We were substituting the wrong character for non-breaking spaces
This commit is contained in:
Jermolene 2014-01-28 15:23:58 +00:00
parent b342f6db67
commit 5af30086c0
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ $tw.utils.deepDefaults = function(object /*, sourceObjectList */) {
Convert "&amp;" to &, "&nbsp;" to nbsp, "&lt;" to <, "&gt;" to > and "&quot;" to "
*/
$tw.utils.htmlDecode = function(s) {
return s.toString().replace(/&lt;/mg,"<").replace(/&nbsp;/mg,"\x40").replace(/&gt;/mg,">").replace(/&quot;/mg,"\"").replace(/&amp;/mg,"&");
return s.toString().replace(/&lt;/mg,"<").replace(/&nbsp;/mg,"\xA0").replace(/&gt;/mg,">").replace(/&quot;/mg,"\"").replace(/&amp;/mg,"&");
};
/*