HTML validation for WordPress themes

I’m getting repeated reviewer’s issue for soft rejected WordPress theme: “It is strongly recommended that all author generated code be run through the W3C validator. Items will be soft-rejected for important errors such as unclosed tags, nesting errors, duplicate IDs etc.”

Errors in my theme are from third party plugins, theme itself doesn’t have errors when tested without plugins.

Any similar experience?