title: AntiXss.HtmlEncode warning :This method has been deprecated. Please use Encoder.HtmlEncode() instead
body: <p>I'm trying to Use Microsoft  <code>AntiXss.HtmlEncode</code> while merging html tags with server side scripting.</p>
  
  <h3>Default.aspx</h3>
  
  <pre><code> &lt;h1&gt;&lt;asp:Literal ID="litHeader" runat="server" /&gt;&lt;/h1&gt;
  </code></pre>
  
  <h3>Default.aspx.cs</h3>
  
  <pre><code> litHeader.Text = AntiXss.HtmlEncode(dt.Rows[0]["Header"].ToString());
  </code></pre>
  
  <p>I keep getting the following warning in my project:</p>
  
  <blockquote>
    <p>'Microsoft.Security.Application.AntiXss.HtmlEncode(string)' is
    obsolete: 'This method has been deprecated. Please use
    Encoder.HtmlEncode() instead.'</p>
  </blockquote>
  
  <p>It is just a warning, do you think it will make any security issues in the future?</p>