title: cannot convert from 'System.Web.UI.HtmlControls.HtmlInputText' to 'string' with HtmlEncode AntiXSS
body: <p>Say I wish to encode a <code>&lt;input&gt;</code> tag in a user control for my project against XSS using antiXSS.</p>
  
  <p>searchbox.ascx</p>
  
  <pre><code>&lt;input id="searchBox" type="text" class="QueryBox" runat="server" /&gt;
  </code></pre>
  
  <p>searchbox.ascx.cs</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  using Microsoft.Security.Application;
  
  namespace Project2015.Website.layout.search
  {
      public partial class searchbox : System.Web.UI.UserControl
      {
          protected void Page_Load(object sender, EventArgs e)
          {
              searchBox = Encoder.HtmlEncode(searchBox);
          }
  
  
      }
  }
  </code></pre>
  
  <p>I am getting this error when I try to compile my code </p>
  
  <blockquote>
    <p>Error 108 Argument 1: cannot convert from
    'System.Web.UI.HtmlControls.HtmlInputText' to 'string'</p>
    
    <p>Error 107 The best overloaded method match for
    'Microsoft.Security.Application.Encoder.HtmlEncode(string)' has some
    invalid arguments</p>
  </blockquote>
  
  <p>can't see what i'm doing wrong here.</p>