Any tool to convert invalid XHTML to valid?

Hello, I am designing a site which is an online tool for download clips.

the thing is it has a lot of html tags bad closed or not following the guidelines to get xhtml, and applying changes manually seems too hard task, do you know any online automated tool to convert code to valid xhtml?

thanks in advance :blush:

You could try something like HTML Tidy. I haven’t tried it, but it may do the job.

TIDY works but you still need to know what you are doing with the Lint as it can strip things you don’t want it to in some rare cases.