mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-01 14:20:16 +02:00
fix: various fixes (#3741)
This commit is contained in:
@@ -158,13 +158,12 @@ function getSimpleHTMLDOM(
|
||||
$defaultBRText = DEFAULT_BR_TEXT,
|
||||
$defaultSpanText = DEFAULT_SPAN_TEXT
|
||||
) {
|
||||
$content = getContents(
|
||||
$url,
|
||||
$header ?? [],
|
||||
$opts ?? []
|
||||
);
|
||||
$html = getContents($url, $header ?? [], $opts ?? []);
|
||||
if ($html === '') {
|
||||
throw new \Exception('Unable to parse dom because the http response was the empty string');
|
||||
}
|
||||
return str_get_html(
|
||||
$content,
|
||||
$html,
|
||||
$lowercase,
|
||||
$forceTagsClosed,
|
||||
$target_charset,
|
||||
|
Reference in New Issue
Block a user