alaawahbah
4/14/2016 - 9:21 AM

From http://stackoverflow.com/questions/286813/how-do-you-convert-html-to-plain-text

private string StripHtml(string source)
{
        string output;

        //get rid of HTML tags
        output = Regex.Replace(source, "<[^>]*>", string.Empty);

        //get rid of multiple blank lines
        output = Regex.Replace(output, @"^\s*$\n", string.Empty, RegexOptions.Multiline);

        return output;
}