childNodes)) { // foreach ($node->childNodes as $node) { // $text = get_text_from_dom($node, $text); // } // } // else { // return $text . $node->textContent . ' '; // } // return $text; // } }