Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tool to find malformed HTML?

Tags:

html

I'm looking for a tool that could help me fix malformed HTML. For example:

<div id="foo">
  <div id="bar">
    <span>Test</span>    
</div>

The tool would detect a missing and inform me the the div with id 'bar' on line 2 is not closed. I know about the w3c validator (using it with the Web Developer Toolbar). But I find the validator tool slow to use. Additionally, once a tag is not closed, the rest of the page generates lots of errors.

This tool can either be a standalone application or a browser plugin.

I'm using Eclipse, JSP, JSTL and jQuery to generate HTML. Even if Eclipse give me some indication on malformed HTML, I have mostly generated code. Therefore, it would be best if the tool analyze the resulting page.

like image 383
Thierry-Dimitri Roy Avatar asked Dec 10 '22 19:12

Thierry-Dimitri Roy


1 Answers

This sounds like a job for HTML Tidy.

like image 63
Andrew Hare Avatar answered Dec 29 '22 02:12

Andrew Hare