I’ve found through experience that when I adopt a site that’s been coded with some strange editor it’s easier to just start from scratch, build the design elements in CSS and rebuild the site to look the same, but with valid code. Most of those editors use things like inline css code, and not classes which makes cleaning it up a big chore.
Yes, inline CSS is the bane of one of the inherited sites, and that’s the worst one for kludgy code too.
Now that I’ve moved the sites to EE Core I am going to have to go in and clean up the code sooner rather than later. If I were getting paid for either of them I would have done that first thing.
Update, many days later: I got all the kludgy code cleaned up. It turned out that in tinkering with the pages over the months previously I’d been removing the bad code from nearly all the pages as I went, and there were only two or three pages I hadn’t touched that were still a mess. One of them I just dropped altogether as the information it was written to impart was both out of date and non-update-able.
The others I just did as JT said and rewrote from scratch.
The nightmares, they have abated somewhat—but they tell me I won’t be free of them for a long time to come.