3
1
Back

Sites Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users function get_content($link) { /** * Use this if you need to call out for elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $xpath .

New Pull Request