wiki.techinc.nl/includes/tidy/TidyDriverBase.php
James D. Forrester 0da97e7a03 Immediately drop wgValidateAllHtml and related code
Bug: T191670
Change-Id: If13d02ee1b30fec1c701226af9d363c6e08b3737
2018-04-10 10:51:28 -07:00

30 lines
508 B
PHP

<?php
namespace MediaWiki\Tidy;
/**
* Base class for HTML cleanup utilities
*/
abstract class TidyDriverBase {
protected $config;
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 );
}