Re: [PHP] XHTML Validation problem

[email protected] ("Craige Leeder")
Newsgroups php.general
Message-ID <[email protected]>
html_entities()

http://ca.php.net/manual/en/function.htmlentities.php

Hope this helps
- Craige

On Sat, May 3, 2008 at 12:13 AM, It Maq <[email protected]> wrote:
> Hi,
>
>  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.
>
>  Thank you
>
>
>       ____________________________________________________________________________________
>  Be a better friend, newshound, and
>  know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
>
>  --
>  PHP General Mailing List (http://www.php.net/)
>  To unsubscribe, visit: http://www.php.net/unsub.php
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.