Html Helpers with MvcHtmlString

The only difference between these two uses of OurHtmlHelper.LinkWithImage() is the first one is returning a raw string (which @ in razor encodes) and the second is declaring HTML content by return an MvcHtmlString() which @ does not encode.

This is doing it wrong (with string class)

<a href='https://www.google.com/search?q=lolcasts'><img src='../images/cat.jpg' /></a>

This is doing it RIGHT (with MvcHtmlString class)


Try to click it, it's a link after all.