Searching for an automated html coding error program

Is there a free or reasonably priced software or program that can automatically fix html coding errors? I just came across Html Validator 0.8.6.1 (FireFox addon), but the automated cleanup function disabled my newsletter signup form. Also, the errors this addon detected were inconsistent with the errors discovered with http://validator.w3.org/. Thanks.

http://tidy.sourceforge.net/

Be aware that it can’t know your intent, it can only fix syntax errors according to html rules. Your best bet is to actually fix the errors shown by w3 validator.

Thank you for your advice.