I was using System.Windows.Forms.RichTextBox to convert rtf text to plain text. However, I would like to migrate to .NET Standard, which does not have this. Is there some proper way to do it without depending on Windows Forms?
I would assume, there should be some common library like System.Text.Rtf, but apparently it is not. :)
private static string RtfToPlainText(string rtf)
{
var textBox = new System.Windows.Forms.RichTextBox
{
Rtf = rtf
};
return textBox.Text;
}