[thelist] PHP htmlentities() - IE vs. NN

Bill Haenel bill at webmarketingworx.com
Wed Jan 9 13:56:00 CST 2002


Oh, yeah - almost forgot - the html is being sent to the database without
trouble using the same function, and it can be pulled from the database and
displayed properly. Bizarre.

BH

> -----Original Message-----
> From: thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org]On Behalf Of Bill Haenel
> Sent: Wednesday, January 09, 2002 2:53 PM
> To: thelist
> Subject: [thelist] PHP htmlentities() - IE vs. NN
>
>
> I'm using htmlentities() to handle text passed from forms to a
> page and to a
> database.
>
> The output displays fine on NN4.7, but on IE5+ (and possibly lower, I
> haven't tested) typographical double and single quotes, as well as any
> &mdash are displayed improperly. IE interprets the ampersand at the
> beginning of the HTML character entity that is sent by the htmlentities()
> function and changes it to &. So you end up with odd text.
>
> Example: When sent from the PHP function, “ becomes “
>
> Anyone bumped into this before? Any idea what to do with it? How to get
> around it?
>
> !?!
>
> BH
>
>
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !
>





More information about the thelist mailing list