Microsoft Visual Studio – How to Strip RTF Data

Dim mRTFData As String = '{rtf1ansiansicpg1252deff0deflang1033{fonttbl{f0fromanfcharset0 Times New Roman;}{f1fnilfcharset0 Arial;}}
 viewkind4uc1pardsb100sa100f0fs24 BLAH BLAH BLAH rdblquoteparparpardf1par}'
 Dim mStrippedofRTFData As String = String.Empty

If mRTFData.Length > 0 Then
   If (mRTFData IsNot Nothing) AndAlso _
      (mRTFData.Trim().StartsWith("{rtf")) Then
      Using rtfTemp As New System.Windows.Forms.RichTextBox()
           rtfTemp.Rtf = mRTFData
           mStrippedofRTFData = rtfTemp.Text
      End Using
   Else
      mStrippedofRTFData = mRTFData
   End If
End If