Can't you just walk the DOM in javascript and remove any Node who's innerHTML property is empty?
Of course. But this would only remove parts of the unwanted elements.
Optimized version after removing empty span elements:
<span style="font-weight: bold; color: rgb(255, 192, 0);">B<span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 255);"><span style="color: rgb(255, 192, 0);">asicversion:</span></span><br style="color: rgb(128, 128, 128);">
</span>
</span>
But I want:
<span style="font-weight: bold; color: rgb(255, 192, 0);">Basicversion:</span>
I thought this problem isn't really new and there might be a build in Mozilla method to call.
Thanks Daniel _______________________________________________ mozilla-editor mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-editor
