JS converts text box format

how to use JS to convert the content written in a text box into format, for example,
AAA
BBB
JS is AAA < br/ > BBB
or
CCC DDD
JS is CCC DDD

after conversion.
Apr.07,2021

str.replace () to know?

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-1e61a92-45944.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-1e61a92-45944.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?