Hyperlinks within IF conditionals converted to plain text

Hi,

I am having issues with hyperlinks within if fields being converted to plain text when saved as HTML.

I have a Word document with paragraphs containing hyperlinks where some paragraphs surrounded with IF fields, that need to be saved as HTML. For hyperlinks that aren't nested within IF field saving as HTML works as expected, with the hyperlink being converted into an element in the resulting HTML. However, when the hyperlink is within a IF conditional, the hyperlink is converted into a element in the resulting HTML, losing the link.


Is this behavior Aspose.Words by design (mimicking Word's broken behavior) or a bug?
Is there anyway to workaround this issue with Aspose.Words?

Thanks.

Hi Simon,

Thanks for your inquiry.

Please note that Aspose.Words mimics the same behavior as MS Word does. If you convert your document to html by using MS Word, you will get the same output. I have converted the shared document to html by using MS Word, 2003, 2007, 2010 and 2013 and get the same output. Hope this answers your query. Please let us know if you have any more queries.