MediaWiki
REL1_30
TidyDriverBase.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Tidy
;
4
8
abstract
class
TidyDriverBase
{
9
protected
$config
;
10
11
function
__construct
(
$config
) {
12
$this->config =
$config
;
13
}
14
19
public
function
supportsValidate
() {
20
return
false
;
21
}
22
31
public
function
validate
( $text, &$errorStr ) {
32
throw
new \MWException( static::class .
' does not support validate()'
);
33
}
34
41
abstract
public
function
tidy
( $text );
42
}
MediaWiki\Tidy\TidyDriverBase
Base class for HTML cleanup utilities.
Definition
TidyDriverBase.php:8
MediaWiki\Tidy\TidyDriverBase\__construct
__construct( $config)
Definition
TidyDriverBase.php:11
MediaWiki\Tidy\TidyDriverBase\supportsValidate
supportsValidate()
Return true if validate() can be used.
Definition
TidyDriverBase.php:19
MediaWiki\Tidy\TidyDriverBase\tidy
tidy( $text)
Clean up HTML.
MediaWiki\Tidy\TidyDriverBase\$config
$config
Definition
TidyDriverBase.php:9
MediaWiki\Tidy\TidyDriverBase\validate
validate( $text, &$errorStr)
Check HTML for errors, used if $wgValidateAllHtml = true.
Definition
TidyDriverBase.php:31
MediaWiki\Tidy
Definition
Balancer.php:26
includes
tidy
TidyDriverBase.php
Generated on Mon Nov 25 2024 15:43:01 for MediaWiki by
1.10.0