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:
{values} "Mainly Impace Longspeed LeRenSpace .....}

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

@ Html.Raw (message) - This works but all weaknesses are open and it is dangerous.

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?

scripts , iframe , form tags, etc. As

Comments

Popular posts from this blog

c# - Textbox not clickable but editable -

Matlab transpose a table vector -

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -