How can I use jquery to remove non-breaking spaces (nbsp) which appear between html elements?
So, for example, the following code is generated by a cms:
var div = "<div><span>content</span> <span>content</span></div>"; var newdiv = div.replace(/ /g,'');