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("<p><b>Srinivasa <Rao> Dhulipalla</b></p>");
htmlTest.Save(@"D:\Final\Final.doc");

Thanks,

Hi

Thanks for your inquiry. It is not correct to use “<” and “>” in HTML. “&lt;” and “&gt;” should be used instead. Please see the following link.
https://www.w3schools.com/HTML/html_entities.asp

Best regards,