MediaWiki
1.30.2
|
Public Member Functions | |
tidy ( $text) | |
Generic interface for wrapping and unwrapping HTML for Dave Raggett's tidy. More... | |
validate ( $text, &$errorStr) | |
Check HTML for errors, used if $wgValidateAllHtml = true. More... | |
Public Member Functions inherited from MediaWiki\Tidy\TidyDriverBase | |
__construct ( $config) | |
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 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 |
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 12 of file RaggettBase.php.
References MediaWiki\Tidy\RaggettBase\cleanWrapped(), MediaWiki\Tidy\RaggettWrapper\getWrapped(), and wfDebug().
MediaWiki\Tidy\RaggettBase::validate | ( | $text, | |
& | $errorStr | ||
) |
Check HTML for errors, used if $wgValidateAllHtml = true.
string | $text | |
string | &$errorStr | Return the error string |
Reimplemented from MediaWiki\Tidy\TidyDriverBase.
Definition at line 32 of file RaggettBase.php.
References $retval, and MediaWiki\Tidy\RaggettBase\cleanWrapped().