Firestore does not save line breaks from text area

后端 未结 1 457
深忆病人
深忆病人 2021-01-17 22:08

I am using a text area with Vue v-model and saving it in a firestore collection. But the line breaks disappear in database.

How can it be fixed ?

<         


        
相关标签:
1条回答
  • 2021-01-17 23:01

    The line breaks don't appear in Firestore console and the text is shown as a single line, but they are saved. Just apply the marked answer in the link below. Vue.js show white space (line breaks)

    0 讨论(0)
提交回复
热议问题