3 namespace MediaWiki\Tidy
;
5 class RaggettInternalHHVM
extends RaggettBase
{
7 * Use the HTML tidy extension to use the tidy library in-process,
8 * saving the overhead of spawning a new process.
10 * @param string $text HTML to check
11 * @param bool $stderr Whether to read result from error status instead of output
12 * @param int &$retval Exit code (-1 on internal error)
15 protected function cleanWrapped( $text, $stderr = false, &$retval = null ) {
17 throw new Exception( "\$stderr cannot be used with RaggettInternalHHVM" );
19 $cleansource = tidy_repair_string( $text, $this->config
['tidyConfigFile'], 'utf8' );
20 if ( $cleansource === false ) {