mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-11-03 17:13:05 +00:00 
			
		
		
		
	Fix substitution for nbsp
We were substituting the wrong character for non-breaking spaces
This commit is contained in:
		@@ -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,"&");
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user