# Replace each new line with \<br /\>?

**URL:** <https://forum.kirupa.com/t/replace-each-new-line-with-br/170517>\
**Category:** web dev\
**Created:** [November 27, 2005, 12:31am UTC](https://forum.kirupa.com/t/replace-each-new-line-with-br/170517 "2005-11-27T00:31:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nathan99](https://avatars.discourse-cdn.com/v4/letter/n/96bed5/32.png) [@nathan99](https://forum.kirupa.com/u/nathan99)\
**Post date:** [November 27, 2005, 12:31am UTC](https://forum.kirupa.com/t/replace-each-new-line-with-br/170517/1 "2005-11-27T00:31:20Z")

</div>

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

```auto

nathan
99

```

will become

```auto

nathan<br />
99

```

is there any way?
