Convert in from text/plain into text/enriched or text/richtext based on flags.
| flags |
flags specifying filter behaviour |
| in |
input textual string |
|
a newly allocated string containing the enriched or richtext version of |