diff --git a/src/web/content/SimpleTag.php b/src/web/content/SimpleTag.php index bcb73c5..56e01da 100644 --- a/src/web/content/SimpleTag.php +++ b/src/web/content/SimpleTag.php @@ -101,8 +101,10 @@ class SimpleTag implements IContent { $parts = ["<{$this->tag}"]; $this->addAttrs($parts, $attrs); $parts[] = ">"; - A::merge($parts, $children); - $parts[] = "tag}>"; - return [c::to_string($parts)]; + return [c::to_string([ + implode("", $parts), + ...$children, + "tag}>", + ])]; } } diff --git a/src/web/content/Tag.php b/src/web/content/Tag.php index 802e28d..dcf09fe 100644 --- a/src/web/content/Tag.php +++ b/src/web/content/Tag.php @@ -48,7 +48,7 @@ class Tag extends SimpleTag implements IPrintable { $parts = ["<{$this->tag}"]; $this->addAttrs($parts, $this->attrs); $parts[] = ">"; - return $parts; + return [implode("", $parts)]; } function getChildren(): array { diff --git a/src/web/vo.php b/src/web/vo.php new file mode 100644 index 0000000..7d41655 --- /dev/null +++ b/src/web/vo.php @@ -0,0 +1,14 @@ +