Nested tags
Terry Vogelaar
tvogelaar at de-mare.nl
Sun Jun 18 08:27:12 EDT 2006
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
More information about the use-livecode
mailing list