Free Support Forum - aspose.com

InsertHTML() method missing text in <>

Hi there,

I used this code to insert sample html(fetched form database) into document, but the data within <> the characters was missing.
Could you please suggest me why it was missing data and please provide me the solution for this type:

Document htmlTest = new Document();
DocumentBuilder builder = new DocumentBuilder(htmlTest);
builder.InsertHtml(“

Srinivasa Dhulipalla

”);
htmlTest.Save(@“D:\Final\Final.doc”);

Thanks,

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. It is not correct to use “<” and “>” in HTML. “<” and “>” should be used instead. Please see the following link.

http://www.w3schools.com/HTML/html_entities.asp

Best regards,