I have been looking for days for a way to do this but have made no progress.
The text looks fine in php but when displayed by javascript, some of the spaces are shown as an empty square symbol.
I have tried the following to change any unusual character to a space, but it doesn’t help.
for (ji=0;ji<32;ji++) {
bb=bb.replace(/String.fromCharCode(ji)/g, ” “);
}
for (ji=91;ji<256;ji++) {
bb=bb.replace(/String.fromCharCode(ji)/g, ” “);
}
I believe that the character is created by a javascript-based editor when either the delete or backspace key is used to make an edit.
I have this strange symbol in many articles so I need a way to deal with this (the articles display fine when displayed by a php CMS).
I’m using javascript to show a preview of the article as a link tooltip.
Any help would be greatly appreciated.