| 1 | <?php |
||
| 13 | class ResponseRepair |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var \tidy |
||
| 17 | */ |
||
| 18 | private $tidy; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | private $config = [ |
||
| 24 | 'output-xhtml' => true, |
||
| 25 | 'indent' => true, |
||
| 26 | 'indent-spaces' => 0, |
||
| 27 | 'fix-backslash' => true, |
||
| 28 | 'hide-comments' => true, |
||
| 29 | 'drop-empty-paras' => true, |
||
| 30 | 'wrap' => false, |
||
| 31 | ]; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param \tidy $tidy |
||
| 35 | */ |
||
| 36 | 2 | public function __construct(\tidy $tidy) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $content |
||
| 43 | * |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | 2 | public function repair($content) |
|
| 65 | } |
||
| 66 |