I have a list of alot of index that holds html tags like <input>, <select> and <td>. My problem is that when rendering those values, it just prints its normal values not as html tags:
Img:

Code:
@foreach(var field in ViewBag.Fields) {
@field }I've tried this as well but both render the same:
@foreach(var field in ViewBag.Fields) { @Server.HtmlEncode(field); }And
@foreach(var field in ViewBag.Fields) { @Html.Encode(field); }
But here the result:

What should I do to make it work? Any suggestion?