diff --git a/src/Utils/Html.php b/src/Utils/Html.php
index cd257e3c4..b29bddb28 100644
--- a/src/Utils/Html.php
+++ b/src/Utils/Html.php
@@ -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);
}