QuickForm - setDefaults without htmlentities()
| From: | Steffen Gebert | Date: | Sun, 12 Oct 2003 19:47:56 +0000 |
| Subject: | QuickForm - setDefaults without htmlentities() | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-8383@lists.php.net to get a copy of this message | ||
Hello,
i've saved many datasets in a mysql database with all htmlentities
already converted:
=====
This is an example dataset<br />
It contains a & and an ö an so on...<br />
=====
The problem i've got is that when I set the default value of an element
(textarea in this case) with the text from the database, the text gets
htmlentities()'d for a second time and so the text above is displayed in
the textbox.
I use HTML_QuickForm_Controller, but I'm quite sure this is just a
problem of HTML_QuickForm.
I couldn't find, how to override the $element->toHtml(), in my case in
HTML/QuickForm/Renderer/ITDynamic.php
It would be nice, if you can help me,
Steffen