Re: WORD to text problem

From: Date: Sun, 03 May 2020 19:34:55 +0000
Subject: Re: WORD to text problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-327133@lists.php.net to get a copy of this message
Hello . Am 3. Mai 2020 21:25:24 MESZ schrieb Tedd Sperling <tedd.sperling@gmail.com>: >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? > The wysiwyg Editor's like Ckeditor have past from Word functions in JavaScript. https://stackoverflow.com/questions/5540886/extract-text-from-doc-and-docx And here are some examples to get the text from a docx file. Maybe it is helpful für you. BR Torsten

« previous php.general (#327133) next »