How to convert a text to html

Asked

Viewed 207 times

-1

In my database I am saving the body of a news, and it is coming with tags s in html, as I do to show this text without the tags s being saved in the database

1 answer

3

Instead of using the default interpolator, add two exclamation marks (!!) after opening the keys and before closing.

{!! $textoHtml !!}

See more on documentation of the Laravel

Browser other questions tagged

You are not signed in. Login or sign up in order to post.