How do I use JavaScript to detect
to become one
?
I trie
Try this:
jQuery('body').html( jQuery('body').html().replace(/(?:\s+){3,}/ig,"\n")); );
DEMO: jsfiddle