Link to home
Start Free TrialLog in
Avatar of wjdashwood
wjdashwood

asked on

remove redudant spaces between html tags

Another one for you Roonaan. I tried to follow your example but I'm a bit behind on a deadline and it's still a bit out of my understanding.

I need a regex to remove redundant spaces between tags. I just copied and pasted from a Word doc and got loads of "<p>&nbsp;</p>          <p><strong>Text</strong></p>".

I can filter out the "<p>&nbsp;</p>" no problem but what about the space between tags? Thanks again!
ASKER CERTIFIED SOLUTION
Avatar of Roonaan
Roonaan
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wjdashwood
wjdashwood

ASKER

That took 2 minutes from submitting to answering. If there were a radio button for answering a question with superhuman abilities I'd check it. As it is, "excellent" and a hell of a lot of gratitude will have to do.