[
https://issues.apache.org/jira/browse/TIKA-1255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13961914#comment-13961914
]
Alan Hunter commented on TIKA-1255:
-----------------------------------
I have attached a suggested fix, test and test documents to improve the
resilience of the Word parser when handling styled hyperlinks
> WordExtractor - bold hyperlink not closed properly
> --------------------------------------------------
>
> Key: TIKA-1255
> URL: https://issues.apache.org/jira/browse/TIKA-1255
> Project: Tika
> Issue Type: Bug
> Components: parser
> Affects Versions: 1.2, 1.3, 1.4, 1.5
> Environment: Any
> Reporter: Alan Hunter
> Priority: Minor
> Attachments: WordExtractor.java, WordParserTest.java, example.doc,
> testWORD_bold_hyperlink.doc, testWORD_italic_hyperlink.doc,
> testWORD_strikethrough_hyperlink.doc
>
>
> If a Word document contains a bold hyperlink, the resulting xhtml is:
> <a
> href="http://www.testdomain.com/support/workcentre-7232-7242/file-download/enus.html?operatingSystem=macosx108&amp;fileLanguage=en&amp;contentId=126220&amp;from=downloads&amp;viewArchived=false"><b>Test
> link</a></b>
> The closing bold and anchor tags are transposed, which isn't valid XHTML.
--
This message was sent by Atlassian JIRA
(v6.2#6252)