From e6c225605243b629b0f30a942252853b6f513ea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karlo=20Miku=C5=A1?= Date: Sun, 11 Dec 2022 14:03:25 +0100 Subject: [PATCH] Escape markdown enabled ingredient description #30 --- app/Http/Resources/IngredientResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Resources/IngredientResource.php b/app/Http/Resources/IngredientResource.php index 14c76edd..20ad3d32 100644 --- a/app/Http/Resources/IngredientResource.php +++ b/app/Http/Resources/IngredientResource.php @@ -24,7 +24,7 @@ public function toArray($request) 'slug' => $this->slug, 'name' => $this->name, 'strength' => $this->strength, - 'description' => $this->description, + 'description' => e($this->description), 'origin' => $this->origin, 'main_image_id' => $this->images->first()->id ?? null, 'images' => ImageResource::collection($this->images),