Manual:$wgDebugTidy

Details
Put tidy warnings in HTML comments, only works for internal tidy.