Fix substitution for nbsp

We were substituting the wrong character for non-breaking spaces
print-window-tiddler
Jermolene 2014-01-28 15:23:58 +00:00
rodzic b342f6db67
commit 5af30086c0
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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,"&");
};
/*