note 13066 added to function.imagepstext.php

From: Date: Thu, 24 May 2001 17:37:50 +0000
Subject: note 13066 added to function.imagepstext.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-14257@lists.php.net to get a copy of this message
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 :) http://www.php.net/manual/en/function.imagepstext.php

« previous php.notes (#14257) next »