MediaWiki
master
MWTidy.php
Go to the documentation of this file.
1
<?php
24
namespace
MediaWiki\Parser
;
25
26
use
MediaWiki\MediaWikiServices
;
27
33
class
MWTidy
{
44
public
static
function
tidy
( $text ) {
45
return
MediaWikiServices::getInstance
()->getTidy()->tidy( $text );
46
}
47
}
48
50
class_alias( MWTidy::class,
'MWTidy'
);
MediaWiki\MediaWikiServices
Service locator for MediaWiki core services.
Definition
MediaWikiServices.php:243
MediaWiki\MediaWikiServices\getInstance
static getInstance()
Returns the global default instance of the top level service locator.
Definition
MediaWikiServices.php:326
MediaWiki\Parser\MWTidy
Class to interact with and configure Remex tidy.
Definition
MWTidy.php:33
MediaWiki\Parser\MWTidy\tidy
static tidy( $text)
Interface with Remex tidy.
Definition
MWTidy.php:44
MediaWiki\Parser
Definition
BlockLevelPass.php:27
includes
parser
MWTidy.php
Generated on Thu Nov 7 2024 08:25:05 for MediaWiki by
1.10.0