How to Html Encode but preserve some elements like tag in ASP.NET? -
I am writing an application in which we are using a service that gives results. The result is some HTML elements that are being printed as it is.
Sample results: Now it has to be displayed in an asp.net page. If I encode the HTML, the span gets encoded I get the desired objects bold This scenario The best way to handle Or is there any way in which I can print these HTML characters, yet what is the security?
{values} "Mainly Impace Longspeed LeRenSpace .....} @ Html.Raw (message) - This works but all weaknesses are open and it is dangerous. scripts ,
iframe , form tags, etc. As
Comments
Post a Comment