MediaWiki
master
MWTidy.php
Go to the documentation of this file.
1
<?php
10
namespace
MediaWiki\Parser
;
11
12
use
MediaWiki\MediaWikiServices
;
13
19
class
MWTidy
{
30
public
static
function
tidy
( $text ) {
31
return
MediaWikiServices::getInstance
()->getTidy()->tidy( $text );
32
}
33
}
34
36
class_alias( MWTidy::class,
'MWTidy'
);
MediaWiki\MediaWikiServices
Service locator for MediaWiki core services.
Definition
MediaWikiServices.php:257
MediaWiki\MediaWikiServices\getInstance
static getInstance()
Returns the global default instance of the top level service locator.
Definition
MediaWikiServices.php:345
MediaWiki\Parser\MWTidy
Class to interact with and configure Remex tidy.
Definition
MWTidy.php:19
MediaWiki\Parser\MWTidy\tidy
static tidy( $text)
Interface with Remex tidy.
Definition
MWTidy.php:30
MediaWiki\Parser
Definition
BlockLevelPass.php:13
includes
Parser
MWTidy.php
Generated on Sun Dec 14 2025 04:26:17 for MediaWiki by
1.10.0