开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜