Re: WORD to text problem

From: Date: Sun, 03 May 2020 19:29:23 +0000
Subject: Re: WORD to text problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-327132@lists.php.net to get a copy of this message
Did you try <textarea> for input. I believe it will eliminate all text formating. On Mon, 4 May 2020, 01:25 Tedd Sperling, <tedd.sperling@gmail.com> wrote: > Hi gang: > > I have a problem where I have lot’s of people going to be putting data > into a form. I can handle that OK — it's not a problem scrubbing the data > for db storage. > > However, some of these “civilians” will use WORD even though the > instructions tell them to use a text processor, only enter text, and NOT to > use WORD! > > Unfortunately, I know it will be a losing battle because I am up against > hundreds of people who want to submit data as they think it should look > (i.e., bold, italic, different fonts, size, styles, and the list goes on an > on). > > Also, I am positive some of you have solved this problem before by using > preg_match, or regex, or some other method. So, I am asking to just to save > myself some time. > > Does anyone have any code they can share? > > Thanks, > > Tedd > > _______________ > Tedd Sperling > tedd.sperling@gmail.com >

« previous php.general (#327132) next »