A
Albert Schlef
It's a quick question (I hope).
I'm using Nokogiri.
I have the following HTML:
...
<div class="lead">
<div class="something"> blah blha blah </div>
<div class="another-something"> blah blah blah </div>
...some text I want to extract...
<div class="blah"> whatever </div>
</div>
...
How can I extract the text "...some text I want to extract..." ?
My problem is that this text isn't wrapped in a DIV. It's a "text" node
(not an "element" node).
Anybody can figure out an xpath expression for it?
I'm using Nokogiri.
I have the following HTML:
...
<div class="lead">
<div class="something"> blah blha blah </div>
<div class="another-something"> blah blah blah </div>
...some text I want to extract...
<div class="blah"> whatever </div>
</div>
...
How can I extract the text "...some text I want to extract..." ?
My problem is that this text isn't wrapped in a DIV. It's a "text" node
(not an "element" node).
Anybody can figure out an xpath expression for it?