\n not working in text area

bervedas

New Member
\[code\]<textarea rows="18" cols="80" style="resize:none;"><?php $str = str_replace('<br>', '\n', 'some text<br><br>another line of text'); echo($str);?></textarea>\[/code\]Output is\[code\]some text\n\nanother line of text\[/code\]This is the output that i want.\[code\]some textanother line of text\[/code\]Anyone know wheres the problem?Thanks in advance
 
Top