Thursday, March 5, 2009

StripHTML

public string StripHTML(string inputString)
{
string HTML_TAG_PATTERN = "<.*?>";
return Regex.Replace (inputString, HTML_TAG_PATTERN, string.Empty);
}

No comments:

Post a Comment