Given a string like:
\"The dog has a long tail, and it is RED!\"
What kind of jQuery or JavaScript magic can be used to keep spaces to only o
I suggest
string = string.replace(/ +/g," ");
for just spaces OR
string = string.replace(/(\s)+/g,"$1");
for turning multiple returns into a single return also.