Insert HTML not working with underline styles

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)

@srinudhulipalla,
Even MS Word 2019 does not underline the text when saving this HTML to DOCX format. However, Aspose.Words and MS Word both can produce correct output when using the following HTML. Hope, this helps.

Line 1 - normal

Line 2 - bold

Line 3 - underline