feat: optimization getHtml()

This commit is contained in:
Jaeger 2020-03-22 17:19:57 +08:00
parent b7954b9aef
commit 1492751f98

View File

@ -35,11 +35,12 @@ class Query
}
/**
* @return mixed
* @param bool $rel
* @return String
*/
public function getHtml()
public function getHtml($rel = true)
{
return $this->html;
return $rel ? $this->document->htmlOuter() : $this->html;
}
/**