note 10573 added to ereg_replace
| From: | earthman at justmail dot de | Date: | Thu, 11 Jan 2001 10:50:45 +0000 |
| Subject: | note 10573 added to ereg_replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9645@lists.php.net to get a copy of this message | ||
if you get text from a textarea you'll get errors width quotation marks an apostorophs. php
add's '<' ahead.
use this code to fix that:
$text = ereg_replace("<\'", "\'", $text);
$text = ereg_replace("<\"", "\"", $text);
http://www.php.net/manual/de/function.ereg-replace.php