[ create a new paste ] login | about

Link: http://codepad.org/wUL6BJBb    [ raw code | output | fork ]

PHP, pasted on May 14:
1
2
3
4
5
6
7
8
<?php

$var1 = "Line 1 info blah blah <br /> Line 2 info blah blah";
$var1 = str_replace("<br />", "\n", $var1);

?>

<textarea><?php echo $var1; ?></textarea>


Output:
1
2
3

<textarea>Line 1 info blah blah 
 Line 2 info blah blah</textarea>


Create a new paste based on this one


Comments: