CSharp examples for System:String HTML
Html Decode
using System;/*w w w.jav a 2 s . c o m*/ public class Main{ public static String HtmlDecode(String source) { if (String.IsNullOrEmpty(source)) { return String.Empty; } String dest = source; dest = dest.Replace("<br/>", Environment.NewLine); dest = dest.Replace(" ", " "); dest = dest.Replace(""", "\""); dest = dest.Replace(">", ">"); dest = dest.Replace("<", "<"); dest = dest.Replace("&", "&"); return dest; } }