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:
<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
<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>
</body>
</html>
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.
Thanks,
Alex