title: @Html.ActionLink link text containing HTML
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>Hi all,</p>
  
  <p>Must be an easy way to do this but have tried and failed thus far...</p>
  
  <p>Have a @Html.ActionLink and within the link text I'd like to render a span. Currently doing so encodes the  element and it's rendered as text on the page.</p>
  
  <p>Here's what I'm trying:</p>
  
  <pre><code>@Html.ActionLink("Here's some text &lt;span class='myClass'&gt;inside the span&lt;/span&gt;"), "ActionName", "ControllerName")
  </code></pre>
  
  <p>Any ideas how I get the link text to handle HTML and render it correctly?</p>
  
  <p>Thanks
  Tim</p>