3
1
Back

$this->mangle_article($article); } function hook_render_article($article) { try { return $this->mangle_article($article); } function api_version() { return array( $html, $content_type); } function get_xpath_dealie($link){ list($html, $content_type) = $this->get_content($link); $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); $alt_text = trim($img->getAttribute('alt')); if (!$alt_text || $alt_text == $article['title'] || strpos($article['title'], $alt_text) !== false){ // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $title_text); Latest commits.

New Pull Request