3 namespace MediaWiki\Tidy
;
6 * Base class for HTML cleanup utilities
8 abstract class TidyDriverBase
{
11 function __construct( $config ) {
12 $this->config
= $config;
16 * Return true if validate() can be used
19 public function supportsValidate() {
26 * @param string $text HTML document fragment to clean up
27 * @return string The corrected HTML output
29 abstract public function tidy( $text );