title: How to generate link using @Html.ActionLink() in ASP .NET MVC Razor view engine if link text contains html, which should be rendered too?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5059805/razor-syntax-prevent-escaping-html-in-an-action-link">Razor syntax prevent escaping html in an action link</a>  </p>
  </blockquote>
  
  
  
  <p>How can I generate link, which contains image, using ASP.NET MVC Razor view engine <code>@Html.ActionLink()</code> method. This method takes inner link text as first parameter, so I tried:</p>
  
  <pre><code>@{
  string linkInnerHtml = string.Format("&lt;img src=\"{0}\" /&gt; Tiles", MyClass.GetImgSrc());
  }
  @Html.ActionLink(linkInnerHtml, "action" ... )
  </code></pre>
  
  <p>but, as a result, I got link with <code>&lt;img src="/source.img" /&gt; Tiles</code> inner text. HTML didn't render.</p>