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