Translations:Manual:$wgUseTidy/20/en

Tidy can correct most bad HTML, which can be bad user input like $code or conflicting or badly written extensions (and even some bugs in the core software).