Hi all
I need to detect all image tags in a HTML document that are siblings:
<p>
<img ../>
<img ../>
<img ../>
</p>
<p>
<img ../>
</p>
In the example above I need to detect the first three img tags, but not the fourth.
In contrary, I also need to detect the img tags that do NOT have direct img siblings.
Sadly I have no idea how to do this. Any hint, please? Thanks.
Josh