[thelist] PHP htmlentities() - IE vs. NN
Martin Kuplens-Ewart
martin at takingitglobal.org
Wed Jan 9 13:59:34 CST 2002
You could always switch your htmlentities() thangs for a regexp call...
[possibly buggy code below]
preg_replace("/(&)[^;]/","&",htmlentities($data));
-m
-------------original message:---------------
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 i
More information about the thelist
mailing list