Merge "Update docs/hooks.txt for ShowSearchHitTitle"
[mediawiki.git] / includes / tidy / Html5Internal.php
blob4ad820021ff507166cf984fe043cd29fab9201b1
1 <?php
3 namespace MediaWiki\Tidy;
5 class Html5Internal extends TidyDriverBase {
6 private $balancer;
7 public function __construct( array $config ) {
8 parent::__construct( $config + [
9 'strict' => true,
10 'tidyCompat' => true,
11 ] );
12 $this->balancer = new Balancer( $this->config );
15 public function tidy( $text ) {
16 return $this->balancer->balance( $text );