Beowulf, that is an awesome extension!
Regarding HTML cleanup, I've always used the
Aardvark extension to clean up HTML before I print, it might be worth looking at if your considering integrating some kind of cleanup mechanism - why invent the wheel twice?