Skip to content

Commit

Permalink
Escape markdown enabled ingredient description #30
Browse files Browse the repository at this point in the history
  • Loading branch information
karlomikus committed Dec 11, 2022
1 parent 3845c3a commit e6c2256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Resources/IngredientResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit e6c2256

Please sign in to comment.