Manual:$wgTidyConfig/zh

详情
Configuration for HTML postprocessing tool. Set this to a configuration array to enable an external tool. Dave Raggett's "HTML Tidy" is typically used. 参见http://www.w3.org/People/Raggett/tidy/.

The replacement for Tidy is going to be RemexHtml

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.

关键词：


 * driver: 也许：
 * RaggettInternalHHVM: Use the limited-functionality HHVM extension
 * RaggettInternalPHP: 使用PECL扩展
 * RaggettExternal: Shell out to an external binary (tidyBin)
 * Html5Depurate: 使用外部净化服务
 * Html5Internal: 使用PHP中的Balancer库
 * RemexHtml: 使用PHP中的RemexHtml库
 * tidyConfigFile: Path to configuration file for any of the Raggett drivers
 * debugComment: True to add a comment to the output with warning messages
 * tidyBin: For RaggettExternal, the path to the tidy binary.
 * tidyCommandLine: For RaggettExternal, additional command line options.

例子
Configure MediaWiki to use the tidy PECL package:

or to use the  binary:

The connection between  and the settings used by older MediaWiki versions  is roughly: