I wrote a web application that receives email through IMAP. Now I need to display these letters to the user. I thought it would be simple (I display HTML in an HTML-enabled browser) until I look at it a bit ... and find that there are many problems, such as:
- Javascript and security
- Style violation
- Of course more
Is there a good safe way to display HTML emails? I would be mistaken for “safe” and not “magnificent”, although I do not want to display only the text version of the letter (which is not even guaranteed to be there ...)
I understand that the most obvious answer - “put everything in a frame” - is this true? Will this really work?
I use Node backend if that helps ...
source share