[pLog-svn] r944 - plog/trunk/js/htmlarea

mark at devel.plogworld.net mark at devel.plogworld.net
Fri Feb 4 10:42:17 GMT 2005


Author: mark
Date: 2005-02-04 10:42:17 +0000 (Fri, 04 Feb 2005)
New Revision: 944

Modified:
   plog/trunk/js/htmlarea/htmlarea.js
Log:
Fixed the bug http://bugs.plogworld.net/view.php?id=149&nbn=37#bugnotes

Modified: plog/trunk/js/htmlarea/htmlarea.js
===================================================================
--- plog/trunk/js/htmlarea/htmlarea.js	2005-02-04 10:40:52 UTC (rev 943)
+++ plog/trunk/js/htmlarea/htmlarea.js	2005-02-04 10:42:17 UTC (rev 944)
@@ -1951,6 +1951,8 @@
 	str = str.replace(/&/ig, "&");
 	str = str.replace(/</ig, "&lt;");
 	str = str.replace(/>/ig, "&gt;");
+    // Fix the multi-spaces converted to 160 error. we need to convert them back to space again.
+	str = str.replace(/\xA0/g, " ");
 	str = str.replace(/\x22/ig, "&quot;");
 	// \x22 means '"' -- we use hex reprezentation so that we don't disturb
 	// JS compressors (well, at least mine fails.. ;)




More information about the pLog-svn mailing list