Forum Moderators: coopster

Message Too Old, No Replies

Removing M$ Word tags

Before sending form to db

         

wheelie34

9:38 am on Apr 5, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi

Using a form for users to type their details into a text area (with tiny_mce), works fine BUT when they copy n paste from M$ Word all those unwanted tags end up in the database.

How do I strip it out BEFORE it ends up in the database?

henry0

12:09 pm on Apr 5, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sorry, I do not have the answer
I have been for years searching all over the place for a function that does it.
it seems that only a hand full of coders have tried to tackle this task.
But none really has a 100% working solution.
hope someone has the answer...

<edit>
Just found a new class from phpclasses.org
I will try using it later
check it out [phpclasses.org]
</edit>

[edited by: henry0 at 12:24 pm (utc) on April 5, 2008]

Amardeep

12:15 pm on Apr 5, 2008 (gmt 0)

10+ Year Member



Sorry, I do not have the answer.
But somebody really have known 100% working solution.

henry0

12:37 pm on Apr 5, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just had a quick look at it, it seems very well done,
It would be great if few php WebmasterWorld members could give it a run and report.

coopster

11:38 pm on Apr 5, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Have you considered the TinyMCE paste plug-in [wiki.moxiecode.com]?

By the way, welcome to WebmasterWorld, Amardeep.