I have encountered a frustrating issue in VueJS: I am receiving an object with the following structure:
{ "description": "this is our List.\n Our Service includes:\n-1 something\n-2 something else\n and another thing\n"}`
My dilemma is how to filter out the "\n" characters and the "-1,-2..." sequences, replacing them with HTML tags like < br >?
I attempted to solve this problem using a function as shown below:
returnList: function(value){
value.replace("\n","<br>")
return value`
Unfortunately, this approach does not work consistently for all instances of "\n".