How to convert NSTextView into HTML ?

Is there a way ?
There is no direct conversion from NSAttributedString (the object containing the text in the NSTextView) but tools converting from PDF and RTF to HTML do exist.
You will find an example
here by Gus Mueller.
On sourceforge there is a project name
On the GNU site, there is also a
RTF to HTML translator.
Note also that Adobe offers an online tool to convert PDF documents to HTML (
Some word processor applications are able to read RTF files and save them as HTML documents, some can be scripted...