MediaWiki
REL1_31
Html5Internal.php
Go to the documentation of this file.
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
}
MediaWiki\Tidy\Balancer
An implementation of the tree building portion of the HTML5 parsing spec.
Definition
Balancer.php:1804
MediaWiki\Tidy\Html5Internal
Definition
Html5Internal.php:5
MediaWiki\Tidy\Html5Internal\$balancer
$balancer
Definition
Html5Internal.php:6
MediaWiki\Tidy\Html5Internal\tidy
tidy( $text)
Clean up HTML.
Definition
Html5Internal.php:15
MediaWiki\Tidy\Html5Internal\__construct
__construct(array $config)
Definition
Html5Internal.php:7
MediaWiki\Tidy\TidyDriverBase
Base class for HTML cleanup utilities.
Definition
TidyDriverBase.php:8
MediaWiki\Tidy\TidyDriverBase\$config
$config
Definition
TidyDriverBase.php:9
MediaWiki\Tidy
Definition
Balancer.php:27
includes
tidy
Html5Internal.php
Generated on Mon Nov 25 2024 15:35:32 for MediaWiki by
1.10.0