I have the following HTML:
<p>
Some cool text
<a href="#">looks like</a>
this.
</p>
I want to grab the text as a single line:
Some cool text looks like this.
I'm currently using the following XPath query:
//p//text()
And it returns all the text, but as separate lines:
Some cool text
looks like
this.
Any thoughts on how to modify my query so it can return on a single line?
The query needs to meet XPath1.0 requirements.