Using HTML tags inside linkText of Html.ActionLink

前端 未结 4 948
星月不相逢
星月不相逢 2020-12-06 16:15

Is it possible to use HTML tags in the linkText of Html.ActionLink? For instance, if I wanted to bold part of the text of a link I would try something similar to this:

4条回答
  •  爱一瞬间的悲伤
    2020-12-06 16:59

    It's not possible, but you could create a HtmlHelper for this, see here or use Url.Action instead what I would recommend you.

提交回复
热议问题