PHP Code

```
<?php
$content = "check1\r\ncheck2\r\ncheck3\r\nend..."   
$order   = array("\r\n");
$replace = "\n";
$content= str_replace( $order, $replace, $content);
$smarty->assign('content', $content);
?>

```

View page (a smarty template)

```
<textarea>{$content}<textarea>

```

Output:

```
check1\r\ncheck2\r\ncheck3\r\nend...

```

I expect output like below

```
check1
check2
check3
end...

```

inside the textarea. I had replaced `\r\n` into `\n`, but even then I can't get my desired output. Whats wrong in my code? Thank you in advance.