Reputation: 32490
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?
Upvotes: 7
Views: 9546
Reputation: 846
May be you can try Server.HtmlDecode()
and Server.HtmlEncode()
functions to change the way HTML is displayed on your page.
Upvotes: 3