Ok. It's finally in pubsvn (http://pubsvn.ez.no/community/trunk/extension/eztidy/ ). I did not put any comments in the code, which I plan to do, but it should be pretty self-explanatory. Let me know what you think.
I think putting the tidy path into a settings file would be good and maybe a switch for the user to either select the tidy method (php functions or executable) or have it choose automatically like it does now. The tidy.ini file is a tidy config file which both the cli and the php function can accept, so I would think we'd want to keep it in that format.
I did not work for me. I am sure I am doing something wrong but can't seem to figure it out. I did activate the extension in the override site.ini.append.php.
Then the next step would be to see if your php has the tidy functions. Go to Setup -> System Information in your eZ admin and see if "tidy" is listed in the PHP, Extensions section.
If it's not there, then eztidy will try to use a tidy binary. There is a $tidy_path variable in eztidy/autoloads/eztidy.php that holds the path to the tidy executable. Make sure that path is correct.