I got the following problem, I read data string from an API which contains new line characters \\n and I want to display them correctly in my template.
\\n
But
I was facing same issus i was using vue-nl2br
vue-nl2br
check it here
Install
npm install --save vue-nl2br
Usage
import Nl2br from 'vue-nl2br' Vue.component('nl2br', Nl2br)
View
result :
myLine1myLine2