MediaWiki master
MWTidy.php
Go to the documentation of this file.
1<?php
24namespace MediaWiki\Parser;
25
27
33class MWTidy {
44 public static function tidy( $text ) {
45 return MediaWikiServices::getInstance()->getTidy()->tidy( $text );
46 }
47}
48
50class_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:33
static tidy( $text)
Interface with Remex tidy.
Definition MWTidy.php:44