Re: QuickForm - setDefaults without htmlentities()
| From: | Steffen Gebert | Date: | Mon, 13 Oct 2003 12:51:01 +0000 |
| Subject: | Re: QuickForm - setDefaults without htmlentities() | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-8400@lists.php.net to get a copy of this message | ||
Am 13.10.2003 09:30:19, schrieb Alexey Borzov <borz_off@cs.msu.su>:
>Hi!
>
>Steffen Gebert wrote:
>> Hello,
>>
>> i've saved many datasets in a mysql database with all htmlentities
>> already converted:
>
>This is obviously *your* problem, not QuickForm's.
>
>There are 2 solutions:
>1) Stop doing this and apply htmlspecialchars() only before output (this is
the
>preferred way)
>2) Somehow undo htmlspecialchars() before doing setDefaults()
>
That might be very bad ;-)
The Database has about 20,000 messages already htmlentities( )'d. ( i found
out QF uses htmlspecialchars)
Mhh... one possibility (the dirty way) might be to edit the
HTML/QuickForm/textarea.php... but.. that would be really dirty and annoy me
at updating PEAR.
Fortunately I've found html_entitiy_decode( ).. so I will try it...
Bye,
steffen