Re: " and ' giving problems
| From: | Michiel van Heusden | Date: | Tue, 11 Feb 2003 08:42:40 +0000 |
| Subject: | Re: " and ' giving problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135169@lists.php.net to get a copy of this message | ||
you could use stripslashes or stripcslashes to remove the '\'-s, otherwise i
wouldn't know..
"Pag" <dante@mail.telepac.pt> wrote in message
news:5.2.0.9.2.20030211055140.00b4d458@mail.telepac.pt...
>
> Hi,
>
> When a user wants to add a comment on my site and uses either " or ', and
> when it gets printed out, comes out as /" or /', either to the web page
or
> on a form to alter.
>
> The only "treatment" i give it after its submitted on the form is:
>
> $comentarioc = str_replace("\r\n", "\n", $comentarioc);
> $comentarioc = str_replace("\r", "\n", $comentarioc);
>
> Is there a way to solve this? So it can accept both " and ', and be able
> to alter/print it with no problem?
> Thanks.
>
> Pag
>
>