I’m using Twitter Bootstrap, and trying to make my links ASP.Net MVC look nice.
However, the <i class=… in the link below, is html encoded, rather than being sent as html to the browser:
@Html.ActionLink("<i class='icon-user icon-white'></i> Create New", "Create", "", New With {Key .class="btn btn-primary"} )

Is there any way of keeping the <i class=… as html, so that the button displays correctly?
Instead of using
@Html.ActionLink(), just write out the<a>tag yourself. You can use@Url.Action()to get the URL of an action for your HREF attribute.The
@Htmlhelpers are nice, but they won’t always provide the flexibility you need.