Converte tutti i newline in tag br


/ Published in: JavaScript
Save to your folder(s)

Converte tutti gli \n in


Copy this code and paste it in your HTML
  1. function return2br(dataStr) { return dataStr.replace(/(
  2. |\r|\n)/g, "<br />"); }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.