I want to select all text inside a div without considering tags inside.
<div>
<p>some text here <a href="">a link here <span>span here<span></a></p>
</div>
I need to get the result as
some text here a link here span here
I tried this
response.xpath('//div/text()')