|
Posted by Tim on May 30, 2005, 1:38 pm
Please log in for more thread options
>> I just did a little experiment with a text editor and the HTML tidy
>> program. I made a small test HTML file with some <span>bogus</span>
>> contents splattered throughout it. Used the search and replace option in
>> the text editor to replace all <span> opening tags with nothing, then ran
>> HTML tidy on it. It stripped out the erroneous closing </span> tags.
> If you have
>
> <span A> aaa <span> bbb <span B> ccc </span> ddd </span> eee </span>
>
> in which A and B are useful, then, after you have removed the <span>
> between aaa & bbb, how can TIDY possibly tell that it is the </span>
> between ddd & eee that should be removed, and not the final one?
Well, I did say do a test. It will depend on the data that you're working
with... Of course, if you have nested spans you're going to need something
smarter.
--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.
This message was sent without a virus, please delete some files yourself.
|