1

How can I include html entities in ActionLink. e.g. The case of » below.

<p>@Html.ActionLink("Link Text &raquo;", "Index", new { }, new { @class = "btn btn-warning", @role = "button" })</p>
rethabile
  • 3,029
  • 6
  • 34
  • 68

1 Answers1

5

Use Url.Action instead

<p><a href=@Url.Action("Index") role="button"><span class="btn btn-warning">Link Text &raquo;</span></a></p>
Mayank Parmar
  • 164
  • 1
  • 7