$value = preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $value);


On 6/15/2011 7:06 PM, Wade Preston Shearer wrote:
> Pasting text from MS word into a text area produces crappy results. I don't 
> do this so it's not a problem for me but amazingly many people do. I'm not 
> alone in trying to address this problem—there are many discussions and 
> solutions across the net—but none of them are working for me. It's driving me 
> crazy. Any ideas?
>
> I want to replace the fancy characters and replace them with their ascii 
> counterparts.
>
> _______________________________________________
>
> UPHPU mailing list
> [email protected]
> http://uphpu.org/mailman/listinfo/uphpu
> IRC: #uphpu on irc.freenode.net


-- 
Trevyn



_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to