I would love at see the REGEX (or any embeded tool) the can deal with matching up closing tags. (My REGEX foo is basic)
The example only works for the case shown
I have seen (IMHO Word Processor? garbage)
Code:
<p>
<span class="normal"><span>A paragraph with</span></span> <span class="italic">italics</span> <span class="normal"><span>in it.</span></span>
</p>
If you run the cleanup above, you end with broken first and last spans