开发者

Create Html.ActionLink without caption encoding

开发者 https://www.devze.com 2023-01-30 14:04 出处:网络
I need to create a link with caption \"next + →\". Is there any way 开发者_如何学Pythonto create Html.ActionLink without caption encoding?I\'ve run into this issue and didn\'t find an easy way ar

I need to create a link with caption "next + →". Is there any way 开发者_如何学Pythonto create Html.ActionLink without caption encoding?


I've run into this issue and didn't find an easy way around it. Sadly the title parameter is a simple System.String instead of an MvcHtmlString.

When my team needed unencoded titles, we just fell back to anchor tags.

<a href="Url.Action(/* etc. */)">raw html</a>
0

精彩评论

暂无评论...
验证码 换一张
取 消