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