Hi,
$text=nl2br(htmlspecialchars(trim($text)));
Und ich bekomme als Ausgabe in meiner Textarea:
Dies ist<br />
ein Test<br />
für TXT<br />Mache ich da was falsch?
Ja.
Und wenn ja, was?
Du wendest die Funktion nl2br in einem Kontext an, in dem sie nicht sinnvoll ist.
MfG ChrisB
--
“Whoever best describes the problem is the person most likely to solve the problem.” [Dan Roam]
“Whoever best describes the problem is the person most likely to solve the problem.” [Dan Roam]