diff --git a/src/HtmlBuilder.php b/src/HtmlBuilder.php
index 8cecc65..210c7e7 100755
--- a/src/HtmlBuilder.php
+++ b/src/HtmlBuilder.php
@@ -525,7 +525,7 @@ class HtmlBuilder
*/
public function tag($tag, $content, array $attributes = [])
{
- $content = is_array($content) ? implode(PHP_EOL, $content) : $content;
+ $content = is_array($content) ? implode('', $content) : $content;
return $this->toHtmlString('<' . $tag . $this->attributes($attributes) . '>' . $this->toHtmlString($content) . '' . $tag . '>');
}