How do I use JavaScript to detect
to become one
?
I trie
I would go with this:
$('body').html($('body').html().replace(/(\W?()+)+/g,""));
However, after reading the comments in another post here I do consider that you should try to avoid doing this in case you can correct it in the back end.