[KLUG Programming] PHP, MySQL and MS Word Cut-n-Paste
Andrew Thompson
tempes at ameritech.net
Thu Jul 28 22:50:13 EDT 2005
On Thu, 2005-07-28 at 14:08, Todd Pillars wrote:
> Does anyone know of a way to strip the MS Word cruft out of a cut and
> paste? Document formating seems to be creeping into a MySQL database,
> when pasting from MS Word into a PHP form.
Are you literally cutting/copying out of MS Word? You might try pasting
first into Notepad, then cutting from there to your form. A little
crufty, but a nice, quick'n'dirty way to strip out formatting.
> I have tried both utf8_convert and mysql_real_escape_string() but some
> unicode (hex) characters are still getting by.
Doesn't sound like that's what's going on, though...
--
Andrew Thompson <tempes at ameritech.net>
The Imagerie
More information about the Programming
mailing list