Hi All,
I am working on a script that is theoreticaly simple but I can not get it to
work completely. I am dealing with a page spit out by .NET that leaves empty
tags in the markup. I need a javascript solution to go behind and do a clean
up after the page loads.
The .NET will leave behind any combination of nested tags. Here is an
example below. Even though the <spantags are not empty, as they contain
<emtags they also need to be removed.
<p>
<span><em></em></span>
<span><em></em></span>
<span><em></em></span>
</p>
Here is a simple test page of what I have done so far. It does remove some
of the tags but always leaves behind some empty tags...
Any ideas of the best way to approach this?
David
I am working on a script that is theoreticaly simple but I can not get it to
work completely. I am dealing with a page spit out by .NET that leaves empty
tags in the markup. I need a javascript solution to go behind and do a clean
up after the page loads.
The .NET will leave behind any combination of nested tags. Here is an
example below. Even though the <spantags are not empty, as they contain
<emtags they also need to be removed.
<p>
<span><em></em></span>
<span><em></em></span>
<span><em></em></span>
</p>
Here is a simple test page of what I have done so far. It does remove some
of the tags but always leaves behind some empty tags...
Any ideas of the best way to approach this?
David
Comment