I am trying to create emails with HTML content. this content has already passed sanitation, so I'm not worried about this, however, when I call:
Razor.Parse(template, model);
on the following Razor template:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <body> @(new System.Web.HtmlString(Model.EmailContent)) </body> </html>
the output message is encoded by HTMl, but I need to decode it. How can i do this?
c # html-encode razor
KallDrexx Mar 12 2018-12-12T00: 00Z
source share