pQuery\DomNode::toString_content PHP Méthode

toString_content() protected méthode

Returns the content of the node (child tags and text)
protected toString_content ( boolean $attributes = true, boolean | integer $recursive = true, boolean $content_only = false ) : string
$attributes boolean Print attributes of child tags
$recursive boolean | integer How many sublevels of childtags to print. True for all.
$content_only boolean Only print text, false will print tags too.
Résultat string
    protected function toString_content($attributes = true, $recursive = true, $content_only = false)
    {
        $s = '';
        foreach ($this->children as $c) {
            $s .= $c->toString($attributes, $recursive, $content_only);
        }
        return $s;
    }
DomNode