wiki.techinc.nl/includes/tidy/TidyDriverBase.php
Umherirrender 0688dd7c6d Set method visibility for various constructors
Change-Id: Id3c88257e866923b06e878ccdeddded7f08f2c98
2019-12-03 20:17:30 +01:00

30 lines
515 B
PHP

<?php
namespace MediaWiki\Tidy;
/**
* Base class for HTML cleanup utilities
*/
abstract class TidyDriverBase {
protected $config;
public function __construct( $config ) {
$this->config = $config;
}
/**
* Return true if validate() can be used
* @return bool
*/
public function supportsValidate() {
return false;
}
/**
* Clean up HTML
*
* @param string $text HTML document fragment to clean up
* @return string The corrected HTML output
*/
abstract public function tidy( $text );
}