MediaWiki REL1_31
|
Public Member Functions | |
tidy ( $text) | |
Generic interface for wrapping and unwrapping HTML for Dave Raggett's tidy. | |
validate ( $text, &$errorStr) | |
Public Member Functions inherited from MediaWiki\Tidy\TidyDriverBase | |
__construct ( $config) | |
supportsValidate () | |
Return true if validate() can be used. | |
Protected Member Functions | |
cleanWrapped ( $text, $stderr=false, &$retval=null) | |
Perform a clean/repair operation. | |
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 ) |
Definition at line 32 of file RaggettBase.php.
References $retval, and MediaWiki\Tidy\RaggettBase\cleanWrapped().