diff --git a/src/Dom/Query.php b/src/Dom/Query.php index 4283756..40026a0 100644 --- a/src/Dom/Query.php +++ b/src/Dom/Query.php @@ -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; } /**