Skip to content

Commit

Permalink
Html: simplified code
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Aug 20, 2017
1 parent 493decc commit f158403
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/Utils/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,15 +325,7 @@ public function setHtml($html)
*/
public function getHtml()
{
$s = '';
foreach ($this->children as $child) {
if (is_object($child)) {
$s .= $child->render();
} else {
$s .= $child;
}
}
return $s;
return implode('', $this->children);
}


Expand Down

0 comments on commit f158403

Please sign in to comment.