Manual:$wgValidateAllHtml

Details
Validate the overall output using tidy and refuse to display the page if it's not valid.