|
| __construct ( $options) |
|
| tidy ( $text, ?callable $textProcessor=null) |
| Clean up HTML.- Parameters
-
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. |
- Returns
- string The corrected HTML output
|
|
| supportsValidate () |
| Return true if validate() can be used.
|
|
Definition at line 14 of file RemexDriver.php.
◆ __construct()
MediaWiki\Tidy\RemexDriver::__construct |
( |
|
$options | ) |
|
◆ tidy()
MediaWiki\Tidy\RemexDriver::tidy |
( |
|
$text, |
|
|
?callable |
$textProcessor = null |
|
) |
| |
Clean up HTML.
- Parameters
-
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. |
- Returns
- string The corrected HTML output
Reimplemented from MediaWiki\Tidy\TidyDriverBase.
Definition at line 50 of file RemexDriver.php.
References wfDebug().
◆ $mungerTrace
MediaWiki\Tidy\RemexDriver::$mungerTrace |
|
private |
◆ $pwrap
MediaWiki\Tidy\RemexDriver::$pwrap |
|
private |
◆ $serializerTrace
MediaWiki\Tidy\RemexDriver::$serializerTrace |
|
private |
◆ $treeMutationTrace
MediaWiki\Tidy\RemexDriver::$treeMutationTrace |
|
private |
◆ CONSTRUCTOR_OPTIONS
const MediaWiki\Tidy\RemexDriver::CONSTRUCTOR_OPTIONS |
The documentation for this class was generated from the following file: