diff --git a/src/Illuminate/View/ComponentAttributeBag.php b/src/Illuminate/View/ComponentAttributeBag.php index 454a3471ae70..694c19d021df 100644 --- a/src/Illuminate/View/ComponentAttributeBag.php +++ b/src/Illuminate/View/ComponentAttributeBag.php @@ -108,6 +108,10 @@ public function merge(array $attributeDefaults = []) { $attributes = []; + $attributeDefaults = array_map(function ($value) { + return e($value); + }, $attributeDefaults); + foreach ($this->attributes as $key => $value) { if ($value === true) { $attributes[$key] = $key;