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:
<div><span>content</span> <span>content</span></div>
I am able to target the elements using slectors.
The following page suggests an answer to remove normal whitespace, but not non-breaking spaces. Remove whitespace and line breaks between HTML elements using jQuery
Thanks