title: How to render a list string that hold html tags as string value
body: <p>I have a list of alot of index that holds html tags like <code>&lt;input&gt;</code>, <code>&lt;select&gt;</code> and <code>&lt;td&gt;</code>. My problem is that when rendering those values, it just prints its normal values not as html tags:</p>
  
  <p><strong>Img</strong>:
  <img src="https://i.stack.imgur.com/v9a9r.png" alt="Where a part of that its render"></p>
  
  <ul>
  <li><p>Code:</p>
  
  <p>@foreach(var field in ViewBag.Fields)
      { </p>
  
  <pre><code>    @field
  }
  </code></pre></li>
  <li><p>I've tried this as well but both render the same:</p>
  
  <pre><code>@foreach(var field in ViewBag.Fields)
  { 
  
      @Server.HtmlEncode(field);
  }
  </code></pre></li>
  <li><p>And</p>
  
  <pre><code>          @foreach(var field in ViewBag.Fields)
          { 
  
              @Html.Encode(field);
          }
  </code></pre></li>
  </ul>
  
  <p>But here the result:</p>
  
  <p><img src="https://i.stack.imgur.com/7s65Y.png" alt="Still not work"></p>
  
  <p>What should I do to make it work? Any suggestion?</p>