Darveson Wright

Darveson Wright

  • 1.5k
  • 103
  • 9.1k

MVC Html.Raw Issue

Dec 4 2019 10:07 AM
I need to display emails. I have a list of subjects and each is a link. User clicks on the link and the email displays. The emails are in a SQL table and in HTML format.
The site is a secure https site and when I use Html.Raw to render the html the site's is no longer secure, padlock icon gone and site details indicate contents no longer secure.
How can I render html securely? Is there a safe alternative to Html.Raw.

Answers (2)