c# - html entity encode text only, not html tag -


I have a string in which there is a bunch of html. I want to convert the html tag to encode within the HTML tag but the tags themselves There is an easy way to do this in ASPN C # 3.5

You can use HTMl agility pack If you ask them to read HTML then you need to use HtmlEncode method to encode specific values.

Comments