Re: Converting user input for XML-validation
| From: | Per Jessen | Date: | Fri, 16 Nov 2007 10:22:53 +0000 |
| Subject: | Re: Converting user input for XML-validation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-264678@lists.php.net to get a copy of this message | ||
Ralph Kutschera wrote:
> Is there a standard function in PHP to convert any string for usage
> with XML? In the example the string should become "< thats a
> bracket".
You could just use CDATA in XML, but otherwise you might want to look at
html_entities().
/Per Jessen, Zürich