3
1
Back

$doc->loadHTML($article['content']); //no-op $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { if ($img->getAttribute('title')) { $article['content'] .= "
" . $msg . ""; } } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users.

New Pull Request