Hi there,
I'm using the RadRichTextEditor the first time and I'm wondering if it is somehow possible to get only the HTML out of the editor. I've thought about something like:
1.string htmlText = txtText.Text; // while txtText is my RadRichTextEditorBut this returns me the plain text, without any html tags. I've seen I can export and import it using a HtmlFormatProvider. This worked great, but it is not exactly the thing I want, since it returns the whole HTML document instead of only the html I have in my text editor.
1.HtmlFormatProvider prov = new HtmlFormatProvider();2.string htmlText = prov.Export(txtText.Document);The output I wish would be something like this:
1.string htmlText = "This is a <b>bold</b> text. Great, isn't it?"Regards,
Roman
