MediaWiki  master
MediaWiki\Tidy\RaggettBase Class Reference
Inheritance diagram for MediaWiki\Tidy\RaggettBase:
Collaboration diagram for MediaWiki\Tidy\RaggettBase:

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

Detailed Description

Definition at line 5 of file RaggettBase.php.

Member Function Documentation

MediaWiki\Tidy\RaggettBase::cleanWrapped (   $text,
  $stderr = false,
$retval = null 

Perform a clean/repair operation.

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

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$textHideous HTML input
string Corrected HTML output

Definition at line 12 of file RaggettBase.php.

References MediaWiki\Tidy\RaggettBase\cleanWrapped(), MediaWiki\Tidy\RaggettWrapper\getWrapped(), and wfDebug().

MediaWiki\Tidy\RaggettBase::validate (   $text,

Definition at line 32 of file RaggettBase.php.

References $retval, and MediaWiki\Tidy\RaggettBase\cleanWrapped().

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