Return to Snippet

Revision: 55445
at February 7, 2012 07:40 by kajinka13


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

Initial URL

                                

Initial Description
Converte tutti gli \n in <br>

Initial Title
Converte tutti i newline in tag br

Initial Tags
javascript, replace

Initial Language
JavaScript