Manual:$wgTidyConfig

Details
Configuration for HTML postprocessing tool.

Set this to a configuration array to enable an external tool.

Dave Raggett's "HTML Tidy" is typically used.

See http://www.w3.org/People/Raggett/tidy/

If this is null and   is true, the deprecated configuration parameters will be used instead.

If this is null and $wgUseTidy is false, a pure PHP fallback will be used.

Keys are:

May be: Use the limited-functionality HHVM extension Use the PECL extension Shell out to an external binary (tidyBin) Path to configuration file for any of the Raggett drivers True to add a comment to the output with warning messages For RaggettExternal, the path to the tidy binary. For RaggettExternal, additional command line options.
 * driver:
 * RaggettInternalHHVM:
 * RaggettInternalPHP:
 * RaggettExternal:
 * tidyConfigFile:
 * debugComment:
 * tidyBin:
 * tidyCommandLine:

Example
One example how to use $wgTidyConfig: