Manual:$wgAlwaysUseTidy

From MediaWiki.org
Jump to: navigation, search
Tidy: $wgAlwaysUseTidy
Always use Tidy
Introduced in version: 1.6.0 (r12844)
Removed in version: still in use
Allowed values: (boolean)
Default value: false

Other settings: Alphabetical | By Function


Details [edit]

Unknown.

Obviously it relates to $wgUseTidy and the ability to run 'HTML tidy' tool over the parser output.

In Parser.php line 357:

if (($wgUseTidy and $this->mOptions->mTidy) or $wgAlwaysUseTidy) {
    $text = Parser::tidy($text);
} else {
    # attempt to sanitize at least some nesting problems


...but what is $this->mOptions ? This implies that it wont always run HTML tidy over parser output, but will allow this to be switched off via some parser options mechanism.... unless you set $wgAlwaysUseTidy=true;

TODO: somebody who knows what this is, please enlighten us!

See also [edit]

Language: English  • 日本語