You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tika.apache.org by Markus Jelsma <ma...@openindex.io> on 2011/04/19 13:55:55 UTC

Parsing HTML anchors with embedded div faulty

Hi,

Using Nutch with Tika 0.9 i cannot extract all two outlinks from a given page 
[1]. This is because Tika doensn't return the document with the anchor text 
embedded and Nutch skips empty anchors when collecting outlinks.

The raw HTML is:
<a href="#"><div>bla 1</div></a>
<a href="#">bla 2</a>

But the parsed HTML with tika-app-1.0-SNAPSHOT.jar -h test.html is:
<a shape="rect" href="#"/>bla 1
<a shape="rect" href="#">bla 2</a>

[1]: http://people.apache.org/~markus/test.html

Cheers,
-- 
Markus Jelsma - CTO - Openindex
http://www.linkedin.com/in/markus17
050-8536620 / 06-50258350