Добавлена выборка актульных сайтов по непройденным вариантам

This commit is contained in:
2024-08-29 09:36:04 +03:00
parent 5e0f59f8c5
commit 74ba48620c
4 changed files with 237 additions and 150 deletions

View File

@ -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;
}