note 10573 deleted from ereg_replace by zak
| From: | zak@php.net | Date: | Thu, 11 Jan 2001 22:25:18 +0000 |
| Subject: | note 10573 deleted from ereg_replace by zak | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9668@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);