Re: find replace quotes with single quotes
| From: | Dan McCullough | Date: | Tue, 18 Jun 2002 14:04:02 +0000 |
| Subject: | Re: find replace quotes with single quotes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102692@lists.php.net to get a copy of this message | ||
Here is the snippet of code I'm working with.
htmlMsg = displayMsg.replace(/"\""/gi,newHTML);
--- Adam Voigt <adam.voigt@cryptocomm.com> wrote:
> Hope this helps ya:
>
> str_replace("\"","'",$data);
>
> Adam Voigt
> adam.voigt@cryptocomm.com
>
> On Tue, 2002-06-18 at 09:54, Dan McCullough wrote:
> > I need to strip out the double quotes and replace it with single quotes.
> > Any help would be appreciated.
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! - Official partner of 2002 FIFA World Cup
> > http://fifaworldcup.yahoo.com
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
=====
--------------------------------------------------------
"Theres no such thing as a problem unless the servers are on fire!"
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com