I am working on an application similar to moments, the vue framework, and now I want to implement when editing and sharing text, if there is a line break or space, how can other people see and maintain the same format of the text?

use this edit box, < div contenteditable= "true" >
when I edit a line wrap, it automatically adds a p tag, but I pass the data to the service and refresh the data obtained from the page to be displayed on the page, right? this tag is also displayed.


v-html instruction for rendering

Menu