feat: optimization getHtml()
This commit is contained in:
parent
b7954b9aef
commit
1492751f98
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user