For an application i am working on, I need to have the image captions span multiple lines. Playing around I was able to get the desired effect from this markup:
<a href="http://www.stackoverflow.com">Stack<br>Overflow</a>
rendered this for me:
However I have been unable to find the right way to generate a link description for HTML.ActionLink that will render this kind of output.
If the urls is not part of your web site using an HTML helper to generate this link wouldn’t bring much value. Instead simply write it as is. And if it is part of your site and you could use routing to reach the address you could write a custom HTML helper which doesn’t HTML encode the link text by default:
and in your view: