Replace each new line with <br />?

k guys next question, how would i replace each new line with <br />

so each time there is a new line in an input text field it puts in a break
so


nathan
99

will become


nathan<br />
99

is there any way?