private static string ToStrippedHtmlText(object input)
{
string retVal = string.Empty;
if (input != null)
{
// Replace HTML line break tags with $LINEBREAK$:
retVal = Regex.Replace(input as string, htmlLineBreakRegex, "", RegexOptions.IgnoreCase);
// Remove the rest of HTML tags:
retVal = Regex.Replace(retVal, htmlStripperRegex, string.Empty);
//retVal.Replace("$LINEBREAK$", "\n");
retVal = retVal.Trim();
}
return retVal;
}