Merge "Convert Special:DeletedContributions to use OOUI."
[lhc/web/wiklou.git] / includes / tidy / Html5Internal.php
1 <?php
2
3 namespace MediaWiki\Tidy;
4
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 );
13 }
14
15 public function tidy( $text ) {
16 return $this->balancer->balance( $text );
17 }
18 }