How can I read the line break from a value with JavaScript and replace all the line breaks with elements?
Example:
A variable passe
if you send the variable from PHP, you can obtain it with this before sending:
$string=nl2br($string);