RE: XHTML Validation problem

From: Date: Sat, 03 May 2008 06:09:16 +0000
Subject: RE: XHTML Validation problem
Groups: php.general 
Request: Send a blank email to php-general+get-273832@lists.php.net to get a copy of this message
>>> I have a page that displays data entered by the user. There is one >>> user that entered the character "&" inside the text he typed. For >>> this case the xhtml validation fails and gives me the following >>> error: >>> "character "&" is the first character of a delimiter but occurred >>> as data." >>> >>> I'm wondering if there is a way to avoid this error. The page >>> itself is valid and fails just in the case the user enters the & >>> character. > Try replacing the '&' character with ' '. That is what I did > to get rid > of that warning in my xhtml documents. Sorry y’all. I meant to say & rather than  . Ought to teach me to check email before eating dinner. ☺ Steve

« previous php.general (#273832) next »