Parsing data without HTML tags
Posted
by user296507
on Stack Overflow
See other posts from Stack Overflow
or by user296507
Published on 2010-03-20T07:37:54Z
Indexed on
2010/03/20
7:51 UTC
Read the original article
Hit count: 310
Hi,
I need to extract the actual phone number form the html listed below, but I'm not really sure how to do it using Nokogiri CSS since there are no html tags around it. When an at_css(.phonetitle) it only parse Phone and not the number.
<div class="detail">
<span class="address">Corner of Toorak Road and Chapel Street, South Yarra</span><br>
<span class="phonetitle">Phone</span> 95435 34341
<br><br>
</div>
© Stack Overflow or respective owner