This is my first post in this blog. I hope you find useful.
One of common problem for web developers is "converting html text to plain text".
in example : in search operations or sending plain text emails by newsletter and .....
in this post i do that with RegularExpressions.
// Return Plain Text
private string
ConvertHtmlToPlainText(string htmlText)
{
return
System.Text.RegularExpressions.Regex.Replace(htmlText,
"<[^>]*>", string.Empty);
}
The function is pretty simple but very useful in most situations.
Have Fun!