Unable to preserve strikethrough formatting when converting from HTML to Word using Aspose.Words

Hi Aspose Support Team,

We are facing an issue when trying to preserve strikethrough formatting while converting from an HTML string to Word using Aspose.Words.

When the HTML string contains text with the CSS property text-decoration-line: line-through; applied to it, the strikethrough formatting is not preserved in the converted Word document.

Here is an example of the HTML string:

    <p>This is an example <span style="text-decoration-line: line-through;">my strikethrough text</span> with CSS.</p>
    <span style="text-decoration-line: line-through;">1</span>

We have tried using the DocumentBuilder.InsertHtml method as well as other conversion methods provided by Aspose.Words, but none of them are able to preserve the strikethrough formatting.

We request your help in resolving this issue and preserving the strikethrough formatting while converting from HTML to Word or if there’s any different way to set it with Aspose.Words please let us know.

Thank you for your time and help.


We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-25150

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

As a workaround you can use text-decoration attribute to specify strikethrough of the text:

<span style="text-decoration:line-through">strikethrough</span>