diff --git a/ColissimoApi/ColissimoApi.php b/ColissimoApi/ColissimoApi.php index 60fd6c1..38bf42b 100644 --- a/ColissimoApi/ColissimoApi.php +++ b/ColissimoApi/ColissimoApi.php @@ -81,9 +81,7 @@ private function getPage($id) private function storeTable($data) { $table = '' . $this->get_string_between($data, '
', '
') . ''; - //$table = mb_convert_encoding($table, 'UTF-8', 'OLD-ENCODING'); $table = utf8_encode($table); - //var_dump($table); die; $unique_id = uniqid(); $filePath = 'temp/' . $unique_id . '.html'; $file = file_put_contents($filePath, $table); @@ -107,8 +105,6 @@ private function storeTable($data) private function parse($filePath) { $content = file_get_contents($filePath); - //var_dump($content); - //die(); $dom = new DOMDocument(); @$html = $dom->loadHTML(mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8')); $dom->preserveWhiteSpace = false;