function nl2br(str) { var break_tag = '
'; return (str + '').replace(/([^>rn]?)(rn|nr|r|n)/g, '' + break_tag + ''); }