MediaWiki
1.32.5
|
Public Member Functions | |
__construct ( $config) | |
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 | |
supportsValidate () | |
Return true if validate() can be used. 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 10 of file RaggettBase.php.
MediaWiki\Tidy\RaggettBase::__construct | ( | $config | ) |
Reimplemented from MediaWiki\Tidy\TidyDriverBase.
Definition at line 12 of file RaggettBase.php.
References MediaWiki\Tidy\TidyDriverBase\$config, and wfDeprecated().
|
abstractprotected |
Perform a clean/repair operation.
string | $text | HTML to check |
bool | $stderr | Whether to read result from STDERR rather than STDOUT |
int | null | &$retval | Exit code (-1 on internal error) |
MWException |
Reimplemented in MediaWiki\Tidy\RaggettExternal, MediaWiki\Tidy\RaggettInternalHHVM, and MediaWiki\Tidy\RaggettInternalPHP.
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 |
Reimplemented from MediaWiki\Tidy\TidyDriverBase.
Definition at line 25 of file RaggettBase.php.
References MediaWiki\Tidy\RaggettBase\cleanWrapped(), MediaWiki\Tidy\RaggettWrapper\getWrapped(), and wfDebug().
MediaWiki\Tidy\RaggettBase::validate | ( | $text, | |
& | $errorStr | ||
) |
Definition at line 45 of file RaggettBase.php.
References $retval, and MediaWiki\Tidy\RaggettBase\cleanWrapped().