/ Published in: JavaScript
Converte tutti gli \n in
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function return2br(dataStr) { return dataStr.replace(/( |\r|\n)/g, "<br />"); }