title: Razor Core 2 Output variable inside html tag
body: <p>I cannot seem to output a var inside the  tag.  I used to do it like the code below in MVC2 razor.  But now it looks like the  tag looks like some kind of reserved tag.</p>
  
  <pre><code>&lt;select class="form-control" id="CompanyId" name="CompanyId"&gt;
      @{ 
          foreach (var item in Model.Companies)
          {
              var selected = "";
  
              if (item.CompanyId == Model.CompanyId)
              {
                  selected = "selected";
              }
  
              &lt;option value="@item.CompanyId" @selected&gt;@item.Name&lt;/option&gt;
          }
      }
  &lt;/select&gt;
  </code></pre>