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

Bill Haenel bill at webmarketingworx.com
Wed Jan 9 13:53:03 CST 2002


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





More information about the thelist mailing list