I have HTML like this
<div>
text1
<a>link_1</a>
<a>link_2</a>
text2
<a>link_3</a>
text3
</div>
I want to get all the nodes between text1
and text2
. The problem is there is no p
or span
tag. There are only plain text with content is text1
and text2
.
How could I do this with XPATH? Thank you!