mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
[BAEBridge] Use defaultLinkTo rather than str_replace (#1168)
This commit is contained in:
parent
686f21bc50
commit
aeca4cfd60
@ -55,9 +55,7 @@ class BAEBridge extends BridgeAbstract {
|
|||||||
|
|
||||||
$content .= '<hr>';
|
$content .= '<hr>';
|
||||||
$content .= $htmlDetail->find('section', 0)->innertext;
|
$content .= $htmlDetail->find('section', 0)->innertext;
|
||||||
$content = str_replace('src="/', 'src="' . parent::getURI() . '/', $content);
|
$item['content'] = defaultLinkTo($content, parent::getURI());
|
||||||
$content = str_replace('href="/', 'href="' . parent::getURI() . '/', $content);
|
|
||||||
$item['content'] = $content;
|
|
||||||
$image = $htmlDetail->find('#zoom', 0);
|
$image = $htmlDetail->find('#zoom', 0);
|
||||||
if ($image) {
|
if ($image) {
|
||||||
$item['enclosures'] = array(parent::getURI() . $image->getAttribute('src'));
|
$item['enclosures'] = array(parent::getURI() . $image->getAttribute('src'));
|
||||||
|
Loading…
Reference in New Issue
Block a user