Wednesday, April 29, 2009

Convert HTML To Plain Text By RegularExpressions

// Return Plain Text
private string ConvertHtmlToPlainText(string htmlText)
{
return System.Text.RegularExpressions.Regex.Replace(htmlText, "<[^>]*>", string.Empty);
}

No comments:

Post a Comment