MediaWiki  1.29.2
MediaWiki\Tidy\RaggettExternal Class Reference
Inheritance diagram for MediaWiki\Tidy\RaggettExternal:
Collaboration diagram for MediaWiki\Tidy\RaggettExternal:

Public Member Functions

 supportsValidate ()
 Return true if validate() can be used. More...
 
- Public Member Functions inherited from MediaWiki\Tidy\RaggettBase
 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)
 

Protected Member Functions

 cleanWrapped ( $text, $stderr=false, &$retval=null)
 Spawn an external HTML tidy process and get corrected markup back from it. More...
 

Additional Inherited Members

- Protected Attributes inherited from MediaWiki\Tidy\TidyDriverBase
 $config
 

Detailed Description

Definition at line 5 of file RaggettExternal.php.

Member Function Documentation

◆ cleanWrapped()

MediaWiki\Tidy\RaggettExternal::cleanWrapped (   $text,
  $stderr = false,
$retval = null 
)
protected

Spawn an external HTML tidy process and get corrected markup back from it.

Also called in OutputHandler.php for full page validation

Parameters
string$textHTML to check
bool$stderrWhether to read result from STDERR rather than STDOUT
int&$retvalExit code (-1 on internal error)
Returns
string|null

Reimplemented from MediaWiki\Tidy\RaggettBase.

Definition at line 15 of file RaggettExternal.php.

References $retval, wfGetNull(), and wfWarn().

◆ supportsValidate()

MediaWiki\Tidy\RaggettExternal::supportsValidate ( )

Return true if validate() can be used.

Reimplemented from MediaWiki\Tidy\TidyDriverBase.

Definition at line 70 of file RaggettExternal.php.


The documentation for this class was generated from the following file: