On Fri, 8 Aug 2003 11:58:05 +0200, uws <uw*@xs4all.invalid> wrote:
I <U3***********************@news2.calgary.shaw.ca >, Randell D. skrev: I tested the code and found a \ was placed before double quotes
automatically - I have had to use stripslashes to clean the offending
slashes but I was wondering why they appeared the first place.
Because " is used as a string delimiter in html tag attributes,
htmlentities() adds a backslash to make sure those double quotes are not
treated as such.
No... If it were to escape a double quote in HTML, it would output "
Backslashes do not escape in HTML. This is not caused by htmlentities, or if
it is, it's a bug in a specific version...
--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (
http://www.andyh.co.uk)
Space: disk usage analysis tool (
http://www.andyhsoftware.co.uk/space)