3
1
Back

$this->get_content($link); $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); } // CTRL+ALT+DEL Sillies.

New Pull Request