Skip to content
Loading
How to use a WebUtility.HtmlDecode() function in MVC 4 .net
  • can you tell me how to use html decode
    @foreach (string t in singlefeat)
    {
  • @t

  • }
  • Features:

    @{
    var singlefeat = allprods.Features.Split('~');
    }
      @foreach (string t in singlefeat)
      {
    • @t
    • }
    • Midhun Tp
      Hi,
      If you are returning a list, then why you want to decode that?
    • Can you describe me properly??I am using mvc 4 and here i am returns a list..
    • Midhun Tp
      Hi,
      You can decode using below code -
      @Html.Raw(someString)