0
I intend to load the page, the text coming from the bank, with the paragraphs and line breaks, just as it is in the bank. Below goes what I’ve tried:
View.blade.php
<div>
<p class="cont">{{nl2br(e($post->descricao))}}</p>
</div>
Result on page
What I don’t understand is the appearance of tags <br />
, instead of the desired effect.
Possible duplicate of How to break a line of a Mysql field into an HTML page
– Fábio Santos
The
<br>
pq vc "asked" the code to do this. see in the documentation what the nl2br ago– JrD
@Jrd, I did it the way it is in the documentation! " nl2br(e($post->Description)". Therefore, I would like to know how to do, not ask the code to appear tags?
– Daniel dos Santos