MediaWiki master
|
Base class for HTML cleanup utilities. More...
Inherited by MediaWiki\Tidy\RemexDriver.
Public Member Functions | |
__construct ( $config) | |
tidy ( $text, ?callable $textProcessor=null) | |
Clean up HTML. | |
Protected Attributes | |
array | $config |
Base class for HTML cleanup utilities.
Definition at line 8 of file TidyDriverBase.php.
MediaWiki\Tidy\TidyDriverBase::__construct | ( | $config | ) |
Definition at line 12 of file TidyDriverBase.php.
References MediaWiki\Tidy\TidyDriverBase\$config.
|
abstract |
Clean up HTML.
string | $text | HTML document fragment to clean up |
?callable | $textProcessor | A callback to run on the contents of text nodes (not elements or attribute values). This can be used to apply text modifications like french spacing or smart quotes, without affecting element or attribute markup. |
Reimplemented in MediaWiki\Tidy\RemexDriver.
|
protected |
Definition at line 10 of file TidyDriverBase.php.
Referenced by MediaWiki\Tidy\TidyDriverBase\__construct(), and MediaWiki\Tidy\RemexDriver\__construct().