3
1
Back

$xpath->query('//img'); $alt_text = trim($img->getAttribute('title')); if (!$alt_text) { $new_element = $doc->createElement("img"); $new_element->setAttribute('src', $extraimage->getAttribute('src')); $bread->parentNode->replaceChild($new_element, $bread); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); // only keep everything starting at the.

New Pull Request