Hi all,

I've got a scripting problem that seems ridiculously simple.

I have to find the corresponding end tag in a HTML file with nested <SPAN> tags:

<SPAN class="FOOTNOTE">
<SPAN Class="reference">
origin
</SPAN>
<SPAN Class="quote">
<SPAN Class="smallcaps">
Text
</SPAN>
more text
</SPAN>
</SPAN>

Some of the tags are nested. How do I find the end tag of each SPAN tag? The tag on line 1 has its end tag on line 11, but the first time it sees </SPAN> is on line 4...

Terry
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to