Index: branches/5.1.x/units/articles/articles_event_handler.php =================================================================== diff -u -N -r13961 -r14030 --- branches/5.1.x/units/articles/articles_event_handler.php (.../articles_event_handler.php) (revision 13961) +++ branches/5.1.x/units/articles/articles_event_handler.php (.../articles_event_handler.php) (revision 14030) @@ -1,6 +1,6 @@ Attributes) ? $node->Attributes['TYPE'] : false; + if ( !isset($content_type) ) { + $content_type = $node->GetAttribute('TYPE'); } switch ($content_type) { @@ -325,11 +325,11 @@ break; case 'html': - $data = unhtmlentities($node->firstChild->Data); // $node->Data + $data = unhtmlentities( $node->GetXML(true) ); // $node->firstChild->Data // $node->Data break; default: - $data = $node->firstChild->Data; // $node->Data; also for 'text' + $data = $node->GetXML(true); // $node->firstChild->Data; // $node->Data; also for 'text' break; } @@ -361,15 +361,15 @@ do { if ($sub_node->Name == 'LINK') { - if ($sub_node->Attributes['REL'] == 'alternate') { - $data[$sub_node->Name] = $sub_node->Attributes['HREF']; + if ($sub_node->GetAttribute('REL') === false || $sub_node->GetAttribute('REL') == 'alternate') { + $data[$sub_node->Name] = $sub_node->GetAttribute('HREF'); } } elseif ($sub_node->Name == 'CONTENT' || $sub_node->Name == 'SUMMARY' || $sub_node->Name == 'TITLE') { $data[$sub_node->Name] = $this->getNodeContent($sub_node); } else { - $data[$sub_node->Name] = $sub_node->firstChild->Data; // $sub_node->Data + $data[$sub_node->Name] = $sub_node->GetXML(true); // firstChild->Data; // $sub_node->Data } } while ( ($sub_node =& $sub_node->NextSibling()) );