I’m looking into creating a custom helper to do the following:
<a href="controller/"> <strong>Item</strong> </a>
I know that @Html.RouteLink(…) will handle the anchor for you but I wanted to insert the "<strong> </strong>" tag to it.
Other than to write a custom method to manipulate the string, I was wondering if there was a cleaner solution to this?
Thanks
Two options:
new { @class = "myClass" }as parameters to the helper and apply css to the link to make it bold.<a href="@Url.RouteUrl(...)) to the path you want usingUrl.RouteUrl