MediaWiki  1.30.0
MediaWiki\Tidy\RemexDriver Class Reference
Inheritance diagram for MediaWiki\Tidy\RemexDriver:
Collaboration diagram for MediaWiki\Tidy\RemexDriver:

Public Member Functions

 __construct (array $config)
 
 tidy ( $text)
 Clean up HTML. More...
 
- Public Member Functions inherited from MediaWiki\Tidy\TidyDriverBase
 __construct ( $config)
 
 supportsValidate ()
 Return true if validate() can be used. More...
 
 validate ( $text, &$errorStr)
 Check HTML for errors, used if $wgValidateAllHtml = true. More...
 

Private Attributes

 $pwrap
 
 $trace
 

Additional Inherited Members

- Protected Attributes inherited from MediaWiki\Tidy\TidyDriverBase
 $config
 

Detailed Description

Definition at line 11 of file RemexDriver.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Tidy\RemexDriver::__construct ( array  $config)

Definition at line 15 of file RemexDriver.php.

References MediaWiki\Tidy\TidyDriverBase\$config, and true.

Member Function Documentation

◆ tidy()

MediaWiki\Tidy\RemexDriver::tidy (   $text)

Clean up HTML.

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

Reimplemented from MediaWiki\Tidy\TidyDriverBase.

Definition at line 25 of file RemexDriver.php.

References wfDebug().

Member Data Documentation

◆ $pwrap

MediaWiki\Tidy\RemexDriver::$pwrap
private

Definition at line 13 of file RemexDriver.php.

◆ $trace

MediaWiki\Tidy\RemexDriver::$trace
private

Definition at line 12 of file RemexDriver.php.


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