I\'m creating a note app where users can add a note by entering multiline text in a textarea. When I save the note in Firebase it is being saved with newline (\\n) character
Convert \n to
if (this.content.my_val && this.content.my_val !== '') { return this.content.my_val.replace(/\n/g, '') }