more work
[linksys-wrt3g-tools.git] / Wrt3g / HtmlParser.php
index 246cb6f3d5d9d953eea57fb2b3aeeaeb244fef7f..d887671fb3e931b6a9a933391b5fd18a6af93364 100644 (file)
@@ -133,12 +133,11 @@ class Wrt3g_HtmlParser
             $titleItems = $xpath->query('td[@width=125]/text()', $tr);
             $valueItems = $xpath->query('td[@width=296]/*[1]', $tr);
             if ($titleItems->length && $valueItems->length) {
-                $title = $titleItems->item(0);
-                $value = $valueItems->item(0);
+                $title = substr($doc->saveXML($titleItems->item(0)), 8, -2);
+                $value = $doc->saveXML($valueItems->item(0));
             
                 var_dump(
-                    $doc->saveXML($title) . "\n"
-                    . $doc->saveXML($value) . "\n\n"
+                    $title, $value
                 );
             }
         }