use of edu.uci.ics.crawler4j.parser.HtmlContentHandler in project crawler4j by yasserg.
the class HtmlContentHandlerTest method testTableInBody.
@Test
public void testTableInBody() throws Exception {
HtmlContentHandler parse = parseHtml("<html><body><table><tr><th>Hello</th><th>there</th></tr>" + "<tr><td>mr</td><td>bear</td></tr></html>");
assertEquals("Hello there mr bear", parse.getBodyText());
}
Aggregations