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