[nycphp-talk] stupid curly quotes
Dan Cech
dcech at phpwerx.net
Wed Mar 16 17:15:18 EST 2005
$text = preg_replace('/[`´]/','\'',$text);
Dan
Marc Antony Vose wrote:
> Hi there.
>
>
> I should have clarified that I mean situations where the end-user is not
> under your control; specifically, when text is pasted from Word into an
> HTML form.
>
>
>> This is an old problem that I am again searching for the prefect
>> solution to.
>>
>> How do people here handle stripping crap like curly quotes out of text
>> that users are pasting from Microsoft Word?
>>
>> Any pointers or advice are welcome...:)
>
>
>
> Cheers,
More information about the talk
mailing list