StyledTextToRTF is based on Belle-Nuit RtfParser and it extends the StyledText class to add a new function, .ToRTF(). If you call StyledTextToRTF on a StyledText, it will return the RTF for that styled text.
Requirements: · REALbasic 5.5 or later