Return to Snippet

Revision: 14252
at May 26, 2009 18:06 by iloveitaly


Initial Code
function nl2br(str) { return str.replace(/\n/g, '<br />'); }

Initial URL

                                

Initial Description

                                

Initial Title
nl2br: New Character to HTML Break

Initial Tags
html, line

Initial Language
JavaScript