Rendering HTML string in to the Aspose Word document using Linq Reporting Engine

@RajmalConga As I can see there are backslashes in your HTML string, I suppose they were supposed to escape double-quotes in the string, but there are no double-quotes. Could you please check your HTML string is valid.

The above html we are passing to a variable as a string value in c# code so we have backslash instead of double quotes.

I have also verified by creating a separate html file and used it to render its content but still same behavior. I have attached the sample html file content below for reference.

<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title>Href Attribute Example</title>
</head>
<body>
    <p style="text-align: right;">
    <strong style="font-size: 11pt; font-family: Calibri, sans-serif;">Video provides a powerful way to help you prove your point</strong>
    <span style="font-size: 11pt; font-family: Calibri, sans-serif;">. </span>
    </p>
    <ol>
      <li>
        <strong style="color: rgb(244, 0, 0); font-size: 14px; font-family: courier;">When you click Online Video, </strong>
      </li>
      <li>
        <strong style="color: rgb(244, 0, 0); font-size: 14px; font-family: courier;">you can paste in the embed code for</strong>
      </li>
      <li>
        <strong style="color: rgb(244, 0, 0); font-size: 14px; font-family: courier;"> the video you want to add.</strong>
        <strong style="font-size: 11pt; font-family: Calibri, sans-serif;"> </strong>
      </li>
      <li>
        <a href="https://conga.atlassian.net/browse/MERGE-1234">https://conga.atlassian.net/browse/MERGE-1234</a>
      </li>
    </ol>
</body>
</html>

@RajmalConga Unfortunately, I cannot reproduce the problem on my side. I have put the provided HTML into a file and used the following code for testing:

string htmlStringSample = File.ReadAllText(@"C:\Temp\in.html");

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Write("<<html [htmlStringSample] -sourceStyles>>");

ReportingEngine engine = new ReportingEngine();
engine.BuildReport(doc, htmlStringSample, "htmlStringSample");

doc.Save(@"C:\Temp\out.docx");

The output is correct: out.docx (8.3 KB)