You’re absolutely correct, and I’ll likely use Tidy on the content provided. I’ve used Tidy many times and it is a great tool.
I guess I’m interested in changing the first tool instead of using a second one. I believe that the WYSIWYG editor should create valid Xml (Xhtml) in the first place!