ASP.NET Label Control - Don't encode HTML
I know this is an XSS risk but for my sepcific scenario am willing to accept it.
I want to use 开发者_如何学运维an ASP.NET label control in suh a way that I give it some HTML and it renders it as html without being encoded.
Is this possible?
Use Literal Control instead of Label
May be you can try Server.HtmlDecode()
and Server.HtmlEncode()
functions to change the way HTML is displayed on your page.
精彩评论