Convert RTF data to unmarked up string

static public string ConvertToText(string rtf)
{
   using(RichTextBox rtb = new RichTextBox())
   {
       rtb.Rtf = rtf;
       return rtb.Text;
   }
}

Catch ArgumentException for cases where the data isnt RTF

Leave a Reply