I've been searching for this answer for quite awhile and can't find an appropriate function to do it.
I want to replace any multiple occurances of the [space] character with the non-breaking space HTML symbol. I can't simply replace all spaces in the string with the symbol because then it would replace all the spaces between words. I only want to use it if there are two or more spaces in sequence.
Before I go write some bizarre algorithm to do this, can anyone point me to a function that could possibly do this automatically?
Thanks!