42 public static function tidy( $text ) {
43 $driver = self::singleton();
46 ': tidy is disabled, caller should have checked MWTidy::isEnabled()' );
48 return $driver->tidy( $text );
55 return self::singleton() !==
false;
63 if ( self::$instance ===
null ) {
66 return self::$instance;
76 public static function factory( array $config =
null ) {
94 self::$instance =
null;
$wgTidyConfig
Configuration for HTML postprocessing tool.
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Throws a warning that $function is deprecated.
Class to interact with and configure Remex tidy.
static factory(array $config=null)
Create a new Tidy driver object from configuration.
static setInstance( $instance)
Set the driver to be used.
static destroySingleton()
Destroy the current singleton instance.
static tidy( $text)
Interface with Remex tidy.