Converting & to & etc

Viewed 109668

I want to convert & to &, " to " etc. Is there a function in c# that could do that without writing all the options manually?

6 Answers
using System.Web; 
...
var html = "this is a sample & string"; 
var decodedhtml = HttpUtility.HtmlDecode(html);
Related