fix: product texts could not be bolded

This commit is contained in:
Corentin Huet 2025-11-03 12:56:56 +01:00
parent 0ffce35844
commit 68cc0d1581

View file

@ -37,7 +37,10 @@ Route::prefix('bo')->name('bo.')->middleware(['admin-secure', 'throttle:credenti
->name('ranges.change-published');
// * PRODUCTS
Route::resource('products', ProductController::class)->except(['show']);
Route::resource('products', ProductController::class)
->except(['show'])
->withoutMiddleware('htmlsanitize')
->middleware('htmlsanitize:description,preparation,ingredients');
Route::post('/products/{product}/change-published', [ProductController::class, 'changePublished'])
->name('products.change-published');