Re: Converting ampersand in QuickForm
| From: | fluidliqatyahoodotcom | Date: | Sun, 06 Mar 2005 08:46:33 +0000 |
| Subject: | Re: Converting ampersand in QuickForm | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-17878@lists.php.net to get a copy of this message | ||
Tried that. But it didn't work.
I also tried using str_replace("&", "&", $str); but it didn't
work as well.
PEAR QuickForm has a htmlspecialchars() function used in common.php which converts everything into
HTML entities.
Any other ideas?
Thanks
sarose <npguy@websurfer.com.np> wrote:
try to use html_entity_decode($str);
----- Original Message -----
From: "fluidliqatyahoodotcom"
To: "PHP Group"
Sent: Sunday, March 06, 2005 2:15 PM
Subject: [PEAR] Converting ampersand in QuickForm
> So i have something like this...
>
> require_once "HTML/QuickForm.php";
> $form = new HTML_QuickForm("form");
> $form->addElement("text", "txtName", "Enter: ",
> array("value" => "&");
> $form->display();
>
> Now yes, the value of the text element is an ampersand "&" in there. But
the HTML is converted to its entities &
> Is there a way to have its HTML of the ampersand to be in its own
character, "&", rather than "&"?
> I need this for a purpose.
>
> Thanks
>
>
> ---------------------------------
> Celebrate Yahoo!'s 10th Birthday!
> Yahoo! Netrospective: 100 Moments of the Web
---------------------------------
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web