How do I output raw html when using RazorEngine (NOT from MVC)

RazorEngine, like MVC’s Razor View Engine, will automatically encode values written to the template. To get around this, we’ve introduce an interface called IEncodedString, with the default implementations being HtmlEncodedString and RawString.

To use the latter, simply make a call to the inbuilt Raw method of TemplateBase:

@Raw(Model.EmailContent)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)