Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit aba00b4

Browse files
committed
Prevent array values being rendered with htmlspecialchars
1 parent 9eadda1 commit aba00b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Components/Inputs/Input.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ public function __construct(
4949
$this->trailingAddon = $trailingAddon;
5050
$this->trailingAddonPadding = $trailingAddonPadding;
5151
$this->trailingIcon = $trailingIcon;
52+
53+
if (is_array($this->value)) {
54+
$this->value = json_encode($this->value);
55+
}
5256
}
5357

5458
public function inputClass(): string

0 commit comments

Comments
 (0)