CSharp examples for System:String HTML
Strips the HTML tags of the strings.
using System.Text.RegularExpressions; public class Main{ /// <summary> /// Strips the HTML tags of the strings. /// </summary> /// <param name="source">The source string.</param> /// <returns></returns> public static string StripHtmlTags(string source) {//from w w w. j a v a2 s . co m return Regex.Replace(source, "<.*?>", string.Empty); } }