I\'m looking for a tool that could help me fix malformed HTML. For example:
Test
-
This sounds like a job for HTML Tidy.
讨论(0)
-
HTMLTidy will fix your errors
xmllint will find your errors
讨论(0)
-
If you want a command line interface, you can use: https://github.com/yaniswang/HTMLHint
It has also its grunt plugin: https://github.com/yaniswang/grunt-htmlhint
讨论(0)
-
https://addons.mozilla.org/en-US/firefox/addon/249 This firefox extension has done me good as well...
讨论(0)
-
Even the W3C Validator will find your malformed/unclosed HTML.
I would, as a rule, always be sure to pass my HTML and CSS through their validators, though HTML Tidy is a nice little app to have around too.
讨论(0)