FluentDOM\DocumentFragment::__toString PHP Method

__toString() public method

Casting the fragment to string will return the text content of all nodes
public __toString ( ) : string
return string
    public function __toString()
    {
        $result = '';
        foreach ($this->childNodes as $child) {
            $result .= (string) $child;
        }
        return $result;
    }