Hello,
I am trying the below code in Aspose.Words 19.7 as well tested same in my older version of Aspose, but seen an issue where if html contains the text decoration with underline is NOT working. I have attached my sample HTML and input word document here. This type of HTML is coming from database and making changes to customer HTML is little hard due to they are in big size. What is the issue with Aspose.Words here not detecting the underline styles where as regular browser can render the HTML properly?
string html = System.IO.File.ReadAllText("D:\\sample.html");
Document doc = new Document("D:\\sample.docx");
DocumentBuilder builder = new DocumentBuilder(doc);
builder.MoveToMergeField("Name");
builder.InsertHtml(html);
doc.Save("D:\\sample_output.docx", SaveFormat.Docx);
sample.zip (9.2 KB)