I am trying to convert a rich text string to plain text or html. I am currently using the RichTextBox.Text feature that works correctly for almost all cases, when the text has a backslash, some text is stripped because the converter believes that it is a RTF Is part of formatting. Do anyone have any idea how to get backslash to live in that example I have an example of a string here
{\ rtf1 \ ansi \ ansicpg1252 \ deff0 \ deflang1033 {\ Fonttbl {\ f0 \ fnil \ fcharset0 Arial;}} \ viewkind4 \ uc1 \
I'll need the text that says "Testing Exploration" with " Export Testing "and retracting text from RTF converter" Exporting Testing Comments "Any Kind assistance will be welcomed. If you have more questions, please reply
I think the converter is right in the text in the RTF A real backslash should be run (for example \\
). Whatever you have been given, I believe, not valid RTF at all.
Whist You can try to fix it by double-up to a backslash by changing a regex instead of input, it looks very fragile and if one adds a sequence of text that is < Em> is a valid control word, then it will go wrong, the only way to be safe is to decide which RTF is being prepared to properly avoid the backslash.
Comments
Post a Comment