Hello does anyone has a solve for this problem.
I have a textarea input.
if I tip in like:
test
test
Its comes to the db as
test
test
but if i make the output at the view with {!! parseDown($post->description) !!}
its show this:
test test
if I make a input with
test
test
its shows :
test
test
does anyone knows what I can make that the output is the same?
function behind parseDown
function parseDown($text = null)
{
return Parsedown::instance()
->setMarkupEscaped(true)# escapes markup (HTML)
->text($text);
}
Just use the nl2br function when displaying the content of textarea.