Quote:
Originally Posted by JSWolf
Don't use this. It won't work. Sorry, but you cannot guarantee that it won't mess something up.
Take a look at the following line...
<p><span>This is some text.<span class="smallcaps">THIS IS MORE TEXT</span>. This is yet more text.</span> And finally the last bit of text.</p>
Can you use regex to get rid of the empty span without messing up the span that actually does something? I don't see how you can.
|
The reason it won't do anything... is because there is no empty tag set, span or otherwise.