You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "NW Brad (JIRA)" <ji...@apache.org> on 2018/02/02 01:29:00 UTC

[jira] [Updated] (TIKA-2562) tika server parse HTML removes DIVs around hyperlink & adds shape

     [ https://issues.apache.org/jira/browse/TIKA-2562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

NW Brad updated TIKA-2562:
--------------------------
    Description: 
Hyperlinks in a HTML document that are parsed via tika server:

curl -X PUT --upload-file tika_adds_shape_to_hyperlink.html [http://localhost:9998/tika] --header "Accept: text/html"

sent:

<div>
 <a href="http://www.google.com">[http://www.google.com|http://www.google.com/]</a>
 </div>

received back:

<a shape="rect" href="http://www.google.com">[http://www.google.com|http://www.google.com/]</a>

 

Divs are are gone and a shape has been added

 

  was:
parsing an HTML file via server:

curl -X PUT --upload-file tika_adds_shape_to_hyperlink.html http://localhost:9998/tika --header "Accept: text/html"

sent:

<div>
 <a href="http://www.google.com">http://www.google.com</a>
 </div>

received back:

<a shape="rect" href="http://www.google.com">http://www.google.com</a>

 

Divs are are gone and a shape has been added

 


> tika server parse HTML removes DIVs around hyperlink & adds shape
> -----------------------------------------------------------------
>
>                 Key: TIKA-2562
>                 URL: https://issues.apache.org/jira/browse/TIKA-2562
>             Project: Tika
>          Issue Type: Bug
>          Components: gui, parser, server
>    Affects Versions: 1.17
>            Reporter: NW Brad
>            Priority: Major
>         Attachments: tika_adds_shape_to_hyperlink.html
>
>
> Hyperlinks in a HTML document that are parsed via tika server:
> curl -X PUT --upload-file tika_adds_shape_to_hyperlink.html [http://localhost:9998/tika] --header "Accept: text/html"
> sent:
> <div>
>  <a href="http://www.google.com">[http://www.google.com|http://www.google.com/]</a>
>  </div>
> received back:
> <a shape="rect" href="http://www.google.com">[http://www.google.com|http://www.google.com/]</a>
>  
> Divs are are gone and a shape has been added
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)