Good, I have a field where I show a message that a user enters the database, the problem I have is that when I retrieve said text it does not show me the line breaks example:
Esto
es un
texto de prueba.
But it returns it to me as follows*Esto es un texto prueba*
I tried to enter the data with nl2br but it returns the text with theEsto<br /> es un <br /> texto de prueba
In my code I am retrieving the text like this{{ nl2br($item->body) }}
I have already tried it in a thousand ways, even with $str = str_replace("<br/>", "\n", $item->body);
, but I don't know what is failing me.