|
|
|
@ -11,7 +11,7 @@ abstract class BaseClass { |
|
|
|
private static $tidyconfig; |
|
|
|
|
|
|
|
public function __construct() { |
|
|
|
$this->tidyconfig = array( |
|
|
|
self::$tidyconfig = array( |
|
|
|
'indent' => false, |
|
|
|
'clean' => true, |
|
|
|
'merge-divs' => false, |
|
|
|
@ -29,7 +29,7 @@ abstract class BaseClass { |
|
|
|
$data = "awerawer"; // in my code, $data is downloaded from a site |
|
|
|
|
|
|
|
$tidy = new tidy; |
|
|
|
$tidy->parseString($data, $this->tidyconfig, 'utf8'); |
|
|
|
$tidy->parseString($data, self::$tidyconfig, 'utf8'); |
|
|
|
$tidy->cleanRepair(); |
|
|
|
|
|
|
|
return $tidy; |
|
|
|
|