protected function parse_children($list) { $text = ''; foreach ($list->childNodes as $element) { $text .= $this->get_text($element); } return rtrim($text, "\n"); }