public function close() : string
{
if (true === $this->contentOnly) {
return '';
}
$close = '</' . $this->tag . '>';
if ($this->xhtml) {
$buff = !$this->isEmptyElement ? $close : '';
} else {
$buff = $close;
}
$buff .= "\n";
return $buff;
}