I have some very basic code that takes a newline and changes it to a <br/>
Code:
post=post.replace(/[^>]\n/g, "<br/>\n");
basically it takes this:
test=
<b>Hello</b>
test
and turns it into this:
test<br/>
<b>Hello</b>
tes<br/>
the problem is it deletes the last character, so test turns into tes<br/>

how do I keep it from deleting the last character?