Html data in database to word

Data is saved in the database with htnl tags. But when i get the data it should be displayed in word without the tags.

<Li> suren<li>
it comes as it if I show in word but it must not be the case.The style must be applied and i must get the data exaclty as it is in word. without <Li> tags. I dont have any controls on the page as my funcionality is to just pick data from database and display in a word format.

Hello

Thanks for your request. I think, in your case you should read your HTML from data base as string and insert this string into the document:

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
string html = File.ReadAllText("yourHTML.html");
builder.InsertHtml(html);
// Save output document
doc.Save("out.doc");

Hope this helps.
Best regards,