Page jump concatenated in a variable Laravel

1

I'm developing a project using Laravel.

When I try to show the details of an actor on the screen, it shows everything on the same line like this:

Is taking the
as a text and not as a page break.

This is my code portion

    public function getDetails()
{
  return ('id :'.$this->id.'<br>'.'Nombre: '.$this->first_name.'<br>'.'Apellido: '.$this->last_name.'<br>'.'Rating: '.$this->rating.'<br>'.'Id de pelicula favorita: '.$this->favorite_movie_id);
}

I would like to show every detail in a separate line.

Thanks !!

    
asked by Daniela Obiols 02.10.2018 в 20:28
source

1 answer

1

It is very likely that you are printeando in blade the data of the following way.

{{ tu_codigo }}

Try the following way if you want to "render" the html that arrives in response:

{!! tu_codigo !!}
    
answered by 02.10.2018 / 21:49
source