# PHP. Line breaks dont work on TEXTAREA

**URL:** <https://forum.kirupa.com/t/php-line-breaks-dont-work-on-textarea/148911>\
**Category:** programming\
**Created:** [May 24, 2005, 3:46pm UTC](https://forum.kirupa.com/t/php-line-breaks-dont-work-on-textarea/148911 "2005-05-24T15:46:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![imagined](https://avatars.discourse-cdn.com/v4/letter/i/a87d85/32.png) [@imagined](https://forum.kirupa.com/u/imagined)\
**Post date:** [May 24, 2005, 3:46pm UTC](https://forum.kirupa.com/t/php-line-breaks-dont-work-on-textarea/148911/1 "2005-05-24T15:46:38Z")

</div>

Hello.

I’m creating this little script where you can add, delete and edit a product list.

When it comes to editing the product. I show the fields already filled out, so the user just edits whatever he wants. Now, I try to put line breaks between the TEXTAREA tag using this:

```php

$row["productdescription"] = str_replace("
", "<br/>", $row["productdescription"]);

```

IT OUTPUTS THIS:  
Color: Green  
\<br/\> Width: 3ft  
\<br/\> Height: 1ft

Of course, I dont want the tags to actually show, I just want to see the space between the two lines.

Please help,

I have been trying for a good while now and nothing seems to work. Thanks in advance,

Leo :hair:
