Laravel and HTML Entities Output Hello, first of all thanks for interest in my topic.
I know that by default the Laravel replaces the specials characters like ç, ã, á, etc.. with HTML Entities, for example:
Solução would be: Solução.
Is there a way to output text without converting them to html entities? Like: Solução.
Thanks a lot! :)
Hey guys, I found a solution.
After a time researching, I discovered that the special characters like ç ã ó í are replaced by the Blade. So now I output my variables using the old way instead of the {{ }}.
I replaced this:
{{ $order->title }}
To this:
<?php echo $order->title; ?>
And problem solved! Thanks!
@pedroroccon not working for multple time on same blade
<div class="mb-2 col-lg-6 col-xs-12 px-3 only-view-text b-right-dotted">
<strong class="text-primary">SOD Detail</strong>
<p>
<?php echo $v->sod_description; ?>
</p>
</div>
<div class="mb-2 col-lg-6 col-xs-12 only-view-text">
<strong class="text-primary">EOD Detail</strong>
<p>
<?php echo $v->eod_description; ?>
</p>
</div>
Try {!! $order->title !!} :)
{!! $order->title !!}
or
{!! html_entity_decode($order->title) !!}
both will work
Please sign in or create an account to participate in this conversation.