Writing/outputting HTML strings unescaped
Asked 07 September, 2021
Viewed 882 times
  • 52
Votes

I've got safe/sanitized HTML saved in a DB table.

How can I have this HTML content written out in a Razor view?

It always escapes characters like < and ampersands to &amp;.

7 Answer