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)