Thanks Adam,
I tried that example and the xhtml was correct, but how do you get proper xhtml on the server side? Is it posible to load the an editor on the server side with some text and then get the xhtml out?
How does the example above work?
Regards,
Rogchap.