From b07a11002808fa3fdae3e2e7cb9a8bcb2268dab6 Mon Sep 17 00:00:00 2001 From: Aleksei Besogonov Date: Sat, 16 Nov 2024 16:55:00 -0800 Subject: [PATCH] Add title and alt text to Oglaf feed --- bridges/OglafBridge.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bridges/OglafBridge.php b/bridges/OglafBridge.php index 1f4bc1aff9e..85772ef35c5 100644 --- a/bridges/OglafBridge.php +++ b/bridges/OglafBridge.php @@ -28,7 +28,9 @@ protected function parseItem($item) { $html = getSimpleHTMLDOMCached($item['uri']); $comicImage = $html->find('img[id="strip"]', 0); - $item['content'] = $comicImage; + $alt = $comicImage->getAttribute("alt"); + $title = $comicImage->getAttribute("title"); + $item['content'] = $comicImage . "

Alt: {$alt}

Title: {$title}

"; return $item; }