|
MediaWiki
master
|


Public Member Functions | |
| tidy ($text) | |
| Generic interface for wrapping and unwrapping HTML for Dave Raggett's tidy. More... | |
| validate ($text, &$errorStr) | |
Public Member Functions inherited from MediaWiki\Tidy\TidyDriverBase | |
| __construct ($config) | |
| supportsValidate () | |
| Return true if validate() can be used. More... | |
| tidy ($text) | |
| Clean up HTML. More... | |
| validate ($text, &$errorStr) | |
| Check HTML for errors, used if $wgValidateAllHtml = true. More... | |
Protected Member Functions | |
| cleanWrapped ($text, $stderr=false, &$retval=null) | |
| Perform a clean/repair operation. More... | |
Additional Inherited Members | |
Protected Attributes inherited from MediaWiki\Tidy\TidyDriverBase | |
| $config | |
Definition at line 5 of file RaggettBase.php.
|
abstractprotected |
Perform a clean/repair operation.
| string | $text | HTML to check |
| bool | $stderr | Whether to read result from STDERR rather than STDOUT |
| int | &$retval | Exit code (-1 on internal error) |
| MWException |
Referenced by MediaWiki\Tidy\RaggettBase\tidy(), and MediaWiki\Tidy\RaggettBase\validate().
| MediaWiki\Tidy\RaggettBase::tidy | ( | $text | ) |
Generic interface for wrapping and unwrapping HTML for Dave Raggett's tidy.
| string | $text | Hideous HTML input |
Definition at line 12 of file RaggettBase.php.
References MediaWiki\Tidy\RaggettBase\cleanWrapped(), MediaWiki\Tidy\RaggettWrapper\getWrapped(), and wfDebug().
| MediaWiki\Tidy\RaggettBase::validate | ( | $text, | |
| & | $errorStr | ||
| ) |
Definition at line 32 of file RaggettBase.php.
References $retval, and MediaWiki\Tidy\RaggettBase\cleanWrapped().