lara-dom
1 month ago
206
8
Laravel

Blade view for rich text field on description tag

Posted 1 month ago by lara-dom

I'm using voyager in a laravel 7 shopping app for the description of all products.

I want to output the field for the description of the product

@section('description', {!! $item->description !!} )

and

for the facebook share <meta property="og:description" content="{!! $item->description !!}">

When I use {!! $item->description !!} in the body, no problem. But in the tag the output always read the p tag and all style form the description.

The weird thing is it's working find on localhost but not on the server. I tried various combination of solution with the same result. I feel there's a quick or maybe it's just not possible?

Thanks for any help I can get

Please sign in or create an account to participate in this conversation.