MediaWiki  master
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 
29  abstract public function tidy( $text );
30 }
tidy( $text)
Clean up HTML.
supportsValidate()
Return true if validate() can be used.
Base class for HTML cleanup utilities.