I need to adjust the filters so that HTML is properly converted to tags, which is why you're seeing all that code.
The editor is doing what it's supposed to though. All that HTML looks correct. I'll bump the signature size limit to accommodate the extra code that the editor generates. Can't do it until I get home though because it involves a change in the database.