Jsoup to get data on <b> block
- by Poh Sun
I'm new to JSoup on Java and would like to enquire few questions. Given the HTML code of the page I would like to get is this
<td width="70%" class="row1">
<b>4</b>
<br />( 0 posts per day / 0.00% of total forum posts )
</td>
My question here is I want to get the data 4 but the output I get is 4 ( 0 posts per day / 0.00% of total forum posts )
Here is my Java code
Iterator <Element> element = totalPost.select("td[width=70%][class=row1]").iterator();
System.out.println(element.next().text());
Sorry if my question is not clear enough.