Posted By

kajinka13 on 02/07/12


Tagged

javascript replace


Versions (?)

Converte tutti i newline in tag br


 / Published in: JavaScript
 

Converte tutti gli \n in

  1. function return2br(dataStr) { return dataStr.replace(/(
  2. |\r|\n)/g, "<br />"); }

Report this snippet  

You need to login to post a comment.