How to remove newline characters in textarea

RT. The front end is vue.js, and the back end is node.js. Every time I enter a large amount of text from textarea, there will always be a newline character (rn) with data input into the database, and every time the data is taken out from the database, it will show rn,. However, this is not what I need. How can I remove this thing?

Mar.07,2021

A regular expression can solve the problem if it is not demanding.
if it is demanding, use a rich text editor


finally directly use the removal method:
jsonTest = jsonTest.replace (/ + / g, ");

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e44fc3-4c203.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e44fc3-4c203.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?