[FX.php List] Continuing problem with parsing apostrophes
Frank G
someone at gagayaya.com
Wed Mar 2 09:55:02 MST 2011
how about
$query->AddDBParam('field', html_entity_decode($field,ENT_QUOTES,"UTF-8"));
Frank
On Mar 2, 2011, at 11:13 AM, Bob Patin wrote:
> That one DOES work, but it seems like it shouldn't!
>
> ... I've got bigger fish to fry so I'm not going to obsess about why this is the only solution that worked... I'd thought of it, but was hellbent to find the proper PHP command to do it.
>
> I thought I used to use stripslashes() for this... apparently not.
>
> Oh well; thanks, and I look forward to seeing your preso at Devcon!
>
> Best,
>
> Bob Patin
>
> On Mar 2, 2011, at 10:07 AM, Steve Winter wrote:
>
>> So half my suggestion won't work 'cause I'm in the middle of an API project and I sent you API ideas, not FX ones (Doh...!)
>>
>> What about my other (cheats, but gets it done) solution...?
>>
>> $string = str_replace('’', "'", $string);
>>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list