blob: 4ad820021ff507166cf984fe043cd29fab9201b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php
namespace MediaWiki\Tidy;
class Html5Internal extends TidyDriverBase {
private $balancer;
public function __construct( array $config ) {
parent::__construct( $config + [
'strict' => true,
'tidyCompat' => true,
] );
$this->balancer = new Balancer( $this->config );
}
public function tidy( $text ) {
return $this->balancer->balance( $text );
}
}
|