feat: elements class add htmlOuters function

This commit is contained in:
Jaeger 2020-03-15 13:58:00 +08:00
parent fc8b701ef2
commit 02c2b125d8

View File

@ -218,6 +218,19 @@ class Elements
});
}
/**
* Gets the htmlOuter of all the elements
*
* @return \Illuminate\Support\Collection|\Tightenco\Collect\Support\Collection
*/
public function htmlOuters()
{
return $this->map(function($item){
return trim($item->htmlOuter());
});
}
/**
* @return phpQueryObject
*/