3
1
Back

Doghouse Diaries rss: spaces in img src and quotes in alt/title text under images (extra useful for non-browser users function get_content($link) { /** * When debugging or writing a new fetcher, use the first if(preg_match("@.*()@", $article['content'], $matches)){ function get_img_tags($xpath, $query, $article){ $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ $orig_src = $entry->getAttribute('src'); $result_html .= "
Alt: " . $img->getAttribute('title') . ""; // only keep everything starting at the first if (preg_match("@.*()@", $article['content'], $matches)) { $article['content'] .= "

" . $entry->textContent.

New Pull Request