A
A
Andrew2016-10-20 17:25:21
JavaScript
Andrew, 2016-10-20 17:25:21

How to display the html text of the email without js?

I'll start a little from afar: there is a MS Exchange 2007 server and a website. There was a need on the site to show some users letters from a certain box. The main requirement is that it works in IE 8 and older.
It was decided to use the Exchange Web Service to receive emails. It returns the email as an HTML document. The site is written in C#, ASP.Net WebForms.
Now the question is - how to display this document on the user's page so that js is not executed (for safety)?
The solutions seem to be a .net or js library for clearing the document (so far, a good library has not been found), and outputting the document in an iframe. Maybe someone has a similar experience?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MrDywar Pichugin, 2016-10-20
@byte916

Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question