ISCS 함수 버그 수정
This commit is contained in:
parent
1d9fa83714
commit
5f55eb458f
@ -932,9 +932,9 @@ function GetEPGFromIscs($ChannelInfo) {
|
||||
endif;
|
||||
else :
|
||||
$response = $data['html'];
|
||||
$response = mb_convert_encoding($response, "HTML-ENTITIES", "UTF-8");
|
||||
$pattern = '/<td class="name">(.*)<\/td>/';
|
||||
$response = preg_replace_callback($pattern, function($matches) { return '<td class="name">'.htmlspecialchars($matches[1]).'</td>';}, $response);
|
||||
$response = mb_convert_encoding($response, "HTML-ENTITIES", "UTF-8");
|
||||
$dom = new DomDocument;
|
||||
libxml_use_internal_errors(True);
|
||||
if($dom->loadHTML($response)):
|
||||
|
@ -951,9 +951,9 @@ function GetEPGFromIscs($ChannelInfo) {
|
||||
endif;
|
||||
else :
|
||||
$response = $data['html'];
|
||||
$response = mb_convert_encoding($response, "HTML-ENTITIES", "UTF-8");
|
||||
$pattern = '/<td class="name">(.*)<\/td>/';
|
||||
$response = preg_replace_callback($pattern, function($matches) { return '<td class="name">'.htmlspecialchars($matches[1]).'</td>';}, $response);
|
||||
$response = mb_convert_encoding($response, "HTML-ENTITIES", "UTF-8");
|
||||
$dom = new DomDocument;
|
||||
libxml_use_internal_errors(True);
|
||||
if($dom->loadHTML($response)):
|
||||
|
Loading…
x
Reference in New Issue
Block a user