MediaWiki master
|
Inherits MediaWiki\Tidy\TidyDriverBase.
Public Member Functions | |||||||
__construct (ServiceOptions $options) | |||||||
tidy ( $text, ?callable $textProcessor=null) | |||||||
Clean up HTML.
| |||||||
![]() | |||||||
__construct (array $config) | |||||||
Public Attributes | |
const | CONSTRUCTOR_OPTIONS |
Additional Inherited Members | |
![]() | |
array | $config |
Definition at line 14 of file RemexDriver.php.
MediaWiki\Tidy\RemexDriver::__construct | ( | ServiceOptions | $options | ) |
Definition at line 29 of file RemexDriver.php.
References MediaWiki\Tidy\TidyDriverBase\$config, MediaWiki\Config\ServiceOptions\assertRequiredOptions(), MediaWiki\Config\ServiceOptions\get(), and MediaWiki\MainConfigNames\TidyConfig.
MediaWiki\Tidy\RemexDriver::tidy | ( | $text, | |
?callable | $textProcessor = null ) |
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 from MediaWiki\Tidy\TidyDriverBase.
Definition at line 46 of file RemexDriver.php.
References wfDebug().
const MediaWiki\Tidy\RemexDriver::CONSTRUCTOR_OPTIONS |
Definition at line 25 of file RemexDriver.php.