Is there a way to have Laravel not convert symbols to html codes?

1.5k views Asked by At

I am working on a template for my home page, pulling html for certain sections from the database. For example, I have a slider with editable text. The text stored in the DB for slide two is

"Name is a multipurpose venue <br /> Empowering people and their passions"

But when I return this in my template, it converts the < to &lt; and > to &gt; which just causes "<br />" to display on the page.

Is there any way to stop this?

1

There are 1 answers

1
Hkan On

To echo out a string without any alterations, use {!! !!} syntax instead of {{ }}.