[KLUG Programming] PHP, MySQL and MS Word Cut-n-Paste
Todd Pillars
todd at terralabs.com
Thu Jul 28 23:04:44 EDT 2005
Andrew Thompson wrote:
> 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?
Yep
> 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.
That is what _I_ do. Kills bullets and such dead in their tracks.
Try to get applicants filling out a form to do one extra step and they
cry like a 3 year old when a balloon pops.
And then they turn around and tell you they will go the extra mile for
you if you hire them... go figure.
>
>
>
>>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...
Nope, but thanks for letting me rant :)
Todd
More information about the Programming
mailing list