3
1
Back

$xpath->query('//img'); $alt_text = trim($img->getAttribute('alt')); if (!$alt_text || $alt_text == $article['title'] || strpos($article['title'], $title_text) !== false){ // there's an arrow shaped cutout in the post that we want $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath.

New Pull Request