in reply to How to tell if the content of one tag is completely contained within another?

HTML::TokeParser might be useful for this. It will return each tag one by one and you can write your logic around it.


Just a tongue-tied, twisted, earth-bound misfit. -- Pink Floyd