html entities
| From: | fluidliq@yahoo.com | Date: | Thu, 03 Mar 2005 14:03:34 +0000 |
| Subject: | html entities | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-17811@lists.php.net to get a copy of this message | ||
I have a few quickform text elements which values are grabbed from the db. these values from the db
are of asian characters. it has no problem showing up the characters in normal html text element. I
guess PHP PEAR had converted the characters into HTML entities like 21335;乳 before
displaying it.
Now, how do I convert them to their actual characters and display them as the value of the text
elements?
i had something like this now...
$form->addElement("text", "txtName", "Name",
array("value" => html_entity_decode($rows['name']));
but this doesn't work.
please help me
---------------------------------
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web