3
1
Back

Simple implementation. Can be done, but requires a lot of controls for this. // please feel free to copy, modify, and/or distribute this software without specific prior written permission. This software is modified by someone else and passed on, we want $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } // Pain.

New Pull Request