Code: Select all
Document.ReplaceAll(" ", " ", false, false, false);
When I try
Code: Select all
Document.SelectAll;
s = Document.SelText;
s = ScriptUtils.StringReplaceAll(s, " ", " ");
Document.SelText = s;
My guess is that this &x160; should be escaped somehow, but how exactly? When I search for &x160 instead (no closing semicolon) with StringReplaceAll(), I get a message
"160" is not a valid integer value