MediaWiki REL1_39
|
Public Member Functions | |||||||
__construct ( $options) | |||||||
tidy ( $text, ?callable $textProcessor=null) | |||||||
Clean up HTML.
| |||||||
Public Member Functions inherited from MediaWiki\Tidy\TidyDriverBase | |||||||
supportsValidate () | |||||||
Return true if validate() can be used. | |||||||
Public Attributes | |
const | CONSTRUCTOR_OPTIONS |
Additional Inherited Members | |
Protected Attributes inherited from MediaWiki\Tidy\TidyDriverBase | |
$config | |
Definition at line 15 of file RemexDriver.php.
MediaWiki\Tidy\RemexDriver::__construct | ( | $options | ) |
ServiceOptions | array | $options | Passing an array is deprecated. |
Reimplemented from MediaWiki\Tidy\TidyDriverBase.
Definition at line 31 of file RemexDriver.php.
References MediaWiki\Tidy\TidyDriverBase\$config, MediaWiki\MainConfigNames\ParserEnableLegacyMediaDOM, MediaWiki\MainConfigNames\TidyConfig, true, and wfDeprecated().
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 23 of file RemexDriver.php.