MediaWiki REL1_34
MediaWiki\Tidy\TidyDriverBase Class Reference

Base class for HTML cleanup utilities. More...

Inheritance diagram for MediaWiki\Tidy\TidyDriverBase:

Public Member Functions

 __construct ( $config)
 
 supportsValidate ()
 Return true if validate() can be used.
 
 tidy ( $text)
 Clean up HTML.
 

Protected Attributes

 $config
 

Detailed Description

Base class for HTML cleanup utilities.

Definition at line 8 of file TidyDriverBase.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Tidy\TidyDriverBase::__construct (   $config)

Definition at line 11 of file TidyDriverBase.php.

References MediaWiki\Tidy\TidyDriverBase\$config.

Member Function Documentation

◆ supportsValidate()

MediaWiki\Tidy\TidyDriverBase::supportsValidate ( )

Return true if validate() can be used.

Returns
bool

Definition at line 19 of file TidyDriverBase.php.

◆ tidy()

MediaWiki\Tidy\TidyDriverBase::tidy (   $text)
abstract

Clean up HTML.

Parameters
string$textHTML document fragment to clean up
Returns
string The corrected HTML output

Reimplemented in MediaWiki\Tidy\RemexDriver.

Member Data Documentation

◆ $config

MediaWiki\Tidy\TidyDriverBase::$config
protected

The documentation for this class was generated from the following file: