eventually something to HTML -> text
I guess you are on your own then. Look at the code, it is quite straightforward.