function toString($attributes = true, $recursive = true, $content_only = false) { $s = '<' . $this->tag; if ($attributes) { $s .= $this->toString_attributes(); } $s .= $this->text . $this->self_close_str . '>'; return $s; }