MediaWiki master
|
Inherits MediaWiki\Tidy\TidyDriverBase.
Public Member Functions | |||||||
__construct (ServiceOptions $options) | |||||||
tidy ( $text, ?callable $textProcessor=null) | |||||||
Clean up HTML.
| |||||||
Public Member Functions inherited from MediaWiki\Tidy\TidyDriverBase | |||||||
__construct ( $config) | |||||||
Public Attributes | |
const | CONSTRUCTOR_OPTIONS |
Additional Inherited Members | |
Protected Attributes inherited from MediaWiki\Tidy\TidyDriverBase | |
array | $config |
Definition at line 15 of file RemexDriver.php.
MediaWiki\Tidy\RemexDriver::__construct | ( | ServiceOptions | $options | ) |
ServiceOptions | $options |
Definition at line 36 of file RemexDriver.php.
References MediaWiki\Tidy\TidyDriverBase\$config, MediaWiki\Config\ServiceOptions\assertRequiredOptions(), MediaWiki\Config\ServiceOptions\get(), MediaWiki\MainConfigNames\ParserEnableLegacyMediaDOM, 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 54 of file RemexDriver.php.
References wfDebug().
const MediaWiki\Tidy\RemexDriver::CONSTRUCTOR_OPTIONS |
Definition at line 28 of file RemexDriver.php.