David Westbrooks wrote:
> I have articles held in a MySQL database for a law firm. When I pull
> the information from the DB and display it, words like "that's" are
> shown as "that\'s". To take care of this problem I have done this:
> $newsart = eregi_replace("\\\'","'", $newsart);
>
> Is there a better way to handle this to catch all irregular
> characters?
>
> Thank you for your help in advance.
>
> -Dave
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.598 / Virus Database: 380 - Release Date: 2/28/2004
http://www.php.net/stripslashes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php