Hallo Andreas,
Ich habe jetzt die Methode von wahsaga genommen, obwohl die auch nicht so einfach geht: nl2br verwandelt \n nämlich in <br /> plus einen Zeilenumbruch.
dann verwende doch die Methode von CK:
$txt = preg_replace("/(\015\012)|(\015)|(\012)/","<br />",$txt); //->http://de3.php.net/nl2br (nach 'CK1' suchen)
(statt "<br />" kannst du natürlich auch was anderes einsetzen)
Grüße aus Nürnberg
Tobias
--
Selfcode: sh:( fo:) ch:? rl:( br:< n4:& ie:% mo:| va:) de:] zu:) fl:( ss:| ls:[ js:|
Selfcode: sh:( fo:) ch:? rl:( br:< n4:& ie:% mo:| va:) de:] zu:) fl:( ss:| ls:[ js:|