How can I read the line break from a value with JavaScript and replace all the line breaks with elements?
Example:
A variable passe
Try
let s=`This is man. Man like dog. Man like to drink. Man is the king.`; msg.innerHTML = s.replace(/\n/g,"");