Добавлена выборка актульных сайтов по непройденным вариантам
This commit is contained in:
@ -36,10 +36,10 @@ class ContingentParser
|
||||
'UTF-8',
|
||||
$encoding
|
||||
);
|
||||
$html = str_replace('windows-1251','utf-8', $html);
|
||||
} else {
|
||||
$dom->loadHTML(mb_convert_encoding($html,'HTML-ENTITIES','UTF-8'));
|
||||
$html = str_replace('windows-1251','utf-8', $html);
|
||||
}
|
||||
$dom->loadHTML(mb_convert_encoding($html,'HTML-ENTITIES','UTF-8'));
|
||||
|
||||
$this->xpath = new \DOMXPath($dom);
|
||||
$this->template = $template;
|
||||
}
|
||||
|
Reference in New Issue
Block a user