Skip to content

Commit 57e3557

Browse files
committed
fix: issue with htmlstring
1 parent f7ec6ef commit 57e3557

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

src/Forms/HtmlForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ protected function formSubmitHtml()
500500
}
501501
}
502502

503-
return $this->toHtmlString($html);
503+
return $html;
504504
}
505505

506506
/**

src/Html/Button.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ public static function render($options = [])
2222

2323
throw_if(empty($content), 'You cannot have an empty button');
2424

25-
return new HtmlString("<button {$attributes}>{$content}</button>");
25+
return "<button {$attributes}>{$content}</button>";
2626
}
2727
}

src/Html/Div.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public static function render($options = [])
2020

2121
throw_if(empty($content), 'You cannot have an empty div');
2222

23-
return new HtmlString("<div {$attributes}>{$content}</div>");
23+
return "<div {$attributes}>{$content}</div>";
2424
}
2525
}

src/Html/DivClose.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ class DivClose extends HtmlSnippet
99
{
1010
public static function render($options = [])
1111
{
12-
return new HtmlString('</div>');
12+
return '</div>';
1313
}
1414
}

src/Html/DivOpen.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ public static function render($options = [])
1212
{
1313
$attributes = app(AttributeBuilder::class)->render($options['attributes']);
1414

15-
return new HtmlString("<div {$attributes}>");
15+
return "<div {$attributes}>";
1616
}
1717
}

src/Html/Heading.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ public static function render($options = [])
2525

2626
throw_if(empty($content), 'You cannot have an empty heading');
2727

28-
return new HtmlString("<h{$level} {$attributes}>{$content}</h{$level}>");
28+
return "<h{$level} {$attributes}>{$content}</h{$level}>";
2929
}
3030
}

src/Html/HrTag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ public static function render($options = [])
1212
{
1313
$attributes = app(AttributeBuilder::class)->render($options['attributes']);
1414

15-
return new HtmlString("<hr {$attributes}>");
15+
return "<hr {$attributes}>";
1616
}
1717
}

src/Html/Link.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ public static function render($options = [])
2222

2323
throw_if(empty($content), 'You cannot have an empty button');
2424

25-
return new HtmlString("<a {$attributes}>{$content}</a>");
25+
return "<a {$attributes}>{$content}</a>";
2626
}
2727
}

src/Html/Span.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public static function render($options = [])
2020

2121
throw_if(empty($content), 'You cannot have an empty span');
2222

23-
return new HtmlString("<span {$attributes}>{$content}</span>");
23+
return "<span {$attributes}>{$content}</span>";
2424
}
2525
}

0 commit comments

Comments
 (0)