note 13066 rejected from function.imagepstext by didou
| From: | didou@php.net | Date: | Fri, 07 Nov 2003 12:56:59 +0000 |
| Subject: | note 13066 rejected from function.imagepstext by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-60087@lists.php.net to get a copy of this message | ||
Note Submitter: noahb@teamgenesis.com
----
BEWARE!!!! this function goes CRAZY when there is a \r in the text it prints. Remember that if you
are writing text from a form, and the user types in a [newline], that consists of a "\r\n"
and will give you unpredictable results. Best fix? $text = ereg_replace("\r\n",
"\n", $text);... then you can do a function to wrap text on "\n" (because this
function don't do it itself :)