Ralph Kutschera wrote:
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".

I found htmlspecialchars() now. But the question that remains: Is that
sufficient for XML?
The only chars XML requires be encoded are < and &. Usually > and quotes are also encoded. So htmlspecialchars() does exactly the right thing.

--
Michael McGlothlin
Southwest Plumbing Supply

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to