Remove al the html tags from the string

Saratvaddilli
Posted by Saratvaddilli under ASP.NET category on | Points: 40 | Views : 790
using System.Text.RegularExpressions;

const string HTML_TAG_PATTERN = "<.*?>";

static string StripHTML (string strString)
{
return Regex.Replace
(strString, HTML_TAG_PATTERN, string.Empty);
}

Comments or Responses

Login to post response