I have some text which looks like this -
\" tushar is a good boy \"
Using javascript I want to remove all the extra white spac
This works nicely:
function normalizeWS(s) { s = s.match(/\S+/g); return s ? s.join(' ') : ''; }