Level 8
I think this case solves you problem https://laracasts.com/discuss/channels/vue/vuejs-how-to-return-a-string-with-line-break-from-database
Or you can do a nl2br using native js http://locutus.io/php/strings/nl2br/
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
I know in blade you can show line breaks like this:
{!! nl2br(e($words)) !!}
But should I do this with vue.js? nl2br is obviously not working here!
Please or to participate in this conversation.