3
1
Back

($title_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); $para_element->appendChild($title_element); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users if (preg_match("@.*(get_img_tags($xpath, '(//div[@class="post"]//img)', $article); $article['content'] .= "" . $entry->ownerDocument->saveXML($entry) . ""; if (ADD_IDS) { $new_element->appendChild($para_element); if ($alt_text == $article['title'] || strpos($article['title'], $title_text) !== false){ // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $alt_text); $title_element = $doc->createElement("i", $title_text); $para_element->appendChild($title_element); } 0 0 Y N 1 F N DEF SW_DIP_x02 SW 0 40 N N 1 F N DEF SW_Reed_Opener SW 0 40 0.0 0 LTYPE 5 15 330 5 100 AcDbSymbolTableRecord 100 AcDbLinetypeTableRecord 2 BYLAYER 70 0 3 vertex -8.30568 -3.44384 3 vertex -5.00013 7.48323 0 vertex -5.31736 -8.65691 2.19603 facet normal -0.771715 -0.635858 -0.0118532 vertex 2.05061 -2.05061 19 facet normal 0.115076 0.00068584 0.993356 facet normal -0.979674 -0.18785 -0.0703618 vertex 7.46167 6.79891 0.0491304 facet normal 0.00039812 -0.112922 0.993604 vertex -0.0667658 7.10941 6.88733 facet normal 0.000419123 0.115684 0.993286 vertex -0.991719 -6.91658 7.89187 facet normal 1.430118e-13 -1.000000e+00 -3.745406e-13 facet normal 0.766702 0.634276 0.09931 facet normal 4.944449e-001 -8.467012e-001 1.965232e-001 vertex -4.016088e+000 2.271186e+000 2.470887e+001 facet normal -0.767815 -0.63438 0.0895698 facet normal 0.114148 0.990969 -0.0703601 vertex 6.95569 6.45393 6.1731 vertex 6.20582 -5.75816 17.8205 facet normal 0.119234 0.101837 0.98763 vertex 4.6237 -0.113982 18.7299.

New Pull Request