Hi,
Der ursprüngliche Text aus der Datenbank kommt so bei mir an:
Zeile 1\r\n\r\nZeile 2\r\n\r\nZeile 3
Dann bereinige diese Texte einmalig, so dass sie nur \n als Zeilenumbruchzeichen enthalten.
Mach das mit den bestehenden Werten – und mit zukünftig reinkommenden neuen, vor dem Abspeichern – falls irgendein Client doch mal \r\n senden sollte.
Die "\r"s brauche ich aber später für RegExp-Gedöhnse.
Brauchst du dann nicht mehr.
MfG ChrisB
--
Autocomplete has spoiled me to a point where it happens every so often that I encounter a CAPTCHA, and I just type in the first character … and then wait for the rest of the code to be automatically suggested :/
Autocomplete has spoiled me to a point where it happens every so often that I encounter a CAPTCHA, and I just type in the first character … and then wait for the rest of the code to be automatically suggested :/