protected parse_children ( DOMNode $list ) : string | ||
$list | DOMNode | Node to parse |
Результат | string | Text representation of the node's children |
protected function parse_children($list)
{
$text = '';
foreach ($list->childNodes as $element) {
$text .= $this->get_text($element);
}
return rtrim($text, "\n");
}