Doesn't work properly in convoluted, but still valid, situations
Brought to you by:
yermat
Does not understand rtf syntax properly in all cases. For example, the attachted file contains 5 lines of code that all evalute to the same thing in official rtf parsers. However, the script here does not return the same output for every line.
Peresonally, I don't blame you for the error. It has to do with how absolutely stupid rtf can be. I've been working on my own parser to deal with how dumb rtf is and it has not been fun.
For reference, the output sentence should be:
Hello world I am here to stay
or in html:
<b>Hello</b> world <b>I am here</b> to stay