feat: elements class add htmlOuters function
This commit is contained in:
parent
fc8b701ef2
commit
02c2b125d8
@ -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
|
* @return phpQueryObject
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user