Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

pedroroccon's avatar

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! :)

0 likes
4 replies
pedroroccon's avatar
pedroroccon
OP
Best Answer
Level 10

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!

vandan's avatar

@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>
bmanish's avatar
{!! $order->title !!}

or

{!! html_entity_decode($order->title) !!}

both will work

Please or to participate in this conversation.