MediaWiki
1.30.0
|
Base class for HTML cleanup utilities. More...
Public Member Functions | |
__construct ( $config) | |
supportsValidate () | |
Return true if validate() can be used. More... | |
tidy ( $text) | |
Clean up HTML. More... | |
validate ( $text, &$errorStr) | |
Check HTML for errors, used if $wgValidateAllHtml = true. More... | |
Protected Attributes | |
$config | |
Base class for HTML cleanup utilities.
Definition at line 8 of file TidyDriverBase.php.
MediaWiki\Tidy\TidyDriverBase::__construct | ( | $config | ) |
Definition at line 11 of file TidyDriverBase.php.
References MediaWiki\Tidy\TidyDriverBase\$config.
MediaWiki\Tidy\TidyDriverBase::supportsValidate | ( | ) |
Return true if validate() can be used.
Reimplemented in MediaWiki\Tidy\RaggettExternal, and MediaWiki\Tidy\RaggettInternalPHP.
Definition at line 19 of file TidyDriverBase.php.
|
abstract |
Clean up HTML.
string | $text | HTML document fragment to clean up |
Reimplemented in MediaWiki\Tidy\RemexDriver, MediaWiki\Tidy\Html5Depurate, MediaWiki\Tidy\Html5Internal, and MediaWiki\Tidy\RaggettBase.
MediaWiki\Tidy\TidyDriverBase::validate | ( | $text, | |
& | $errorStr | ||
) |
Check HTML for errors, used if $wgValidateAllHtml = true.
string | $text | |
string | &$errorStr | Return the error string |
Reimplemented in MediaWiki\Tidy\RaggettBase.
Definition at line 31 of file TidyDriverBase.php.
References class.
|
protected |
Definition at line 9 of file TidyDriverBase.php.
Referenced by MediaWiki\Tidy\Html5Internal\__construct(), MediaWiki\Tidy\Html5Depurate\__construct(), MediaWiki\Tidy\TidyDriverBase\__construct(), and MediaWiki\Tidy\RemexDriver\__construct().