the html code is coming from .msg fileMailItem item = (MailItem)app.CreateItemFromTemplate(@"C:\Users\elayronj\Desktop\Sample\sample.msg", Type.Missing); string body = item.HTMLBody; my problem is, when i get item.HTMLBody and display on the div/iframe, its replacing the above html tags.