Inserting html using the RazorEngine to be rendered as HTML is populated template
<p>I'm having a problem rendering html in a HTML template. I am currently using the razorEngine to populate templates we then use in emails. The information I am having issues with rendering is a url. Because of a client requirement we cannot have clickable links inside of emails so instead I have to have the url as a plain string, the problem with email clients is that they will render a url string as a link regardless of if you define it as a link or not. To circumvent this I have added a couple zero space images throughout the link to break it.</p>

<p>This is the code populating the template:</p>

<pre><code>Engine.Razor.Compile(content, "template");
Engine.Razor.Run("template", null, data)
</code></pre>

<p>data passed in is a JObject:</p>

<pre><code>{
    "Code": "235466",
    "FirstName": "First",
    "LastName": "Last",
    "URL": "&lt;p&gt;http&lt;img src=\"\" width=\"0\" height=\"0\"&gt;s:&lt;img src=\"\" width=\"0\" height=\"0\"&gt;//test.&lt;img src=\"\" width=\"0\" height=\"0\"&gt;test.&lt;img src=\"\" width=\"0\" height=\"0\"&gt;com/account/forgotpassword/&lt;/p&gt;"
}
</code></pre>

<p>Tags in the template match with the template typically like this:</p>

<ul>
<li>@Model.FirstName</li>
<li>@Model.LastName</li>
<li>@Model.LastName</li>
</ul>

<p>Apart from the url which i'm trying to render as html:</p>

<ul>
<li>@Raw(Model.URL)</li>
</ul>

<p>The following error gets thrown when attempting the enter the values:</p>

<p><em>Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: The best overloaded method match for 'RazorEngine.Templating.TemplateBase.Raw(string)' has some invalid arguments</em></p>

<p>If I was to place the URL directly into the Raw() it works correctly:</p>

<pre><code>@Raw("&lt;p&gt;http&lt;img src="" width="0" height="0"&gt;s:&lt;img src="" width="0" height="0"&gt;//test.&lt;img src="" width="0" height="0"&gt;test.&lt;img src="" width="0" height="0"&gt;com/account/forgotpassword/&lt;/p&gt;")
</code></pre>

<p>Can anyone see what I am missing here?</p>